Solved

String control

Posted on 1998-01-13
2
189 Views
Last Modified: 2011-09-20
hi
I was curious on how to do the following i need a filename in quotes but since it itself is being copied into string i don't know how to seperate the quotes from the defined parameter
for example:
strcpy(blah,"get this filename=image.gif");
i=send(25,blah,strlen(blah),0);
printf("%s",blah);
is there a way to get the contents of blah to produce a printout exactly like this
---> get this filename="image.gif"
is there some string manipulation i am missing?
i'm using visual c++
0
Comment
Question by:jbird090897
2 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 120 total points
ID: 1178228
Try this:

      strcpy(blah,"get this filename=\"image.gif\"");

kind regards,

Jos aka jos@and.nl
0
 

Author Comment

by:jbird090897
ID: 1178229
thankyou
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question