Solved

String control

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

759 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

20 Experts available now in Live!

Get 1:1 Help Now