Solved

String control

Posted on 1998-01-13
2
183 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now