Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

String control

Posted on 1998-01-13
2
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 360 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

604 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