Solved

String control

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 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