lost. Help
- From: "Bill Cunningham" <nospam@xxxxxxxxx>
- Date: Thu, 10 Apr 2008 22:18:49 GMT
In a previous post I mentioned a beautifully working simple function
called out with this prototype:
int out (int n,char *buffer);
Great. But how would I handle the command line? I have arrays and sub-arrays
char *argv[] and argc.
int main (int argc, char *argv[]) {
/* In one of these two parameters I am going to have to take a
string and send it back. What I want is a perfect version of puts. Which of
these two parameters would take a single string like "hello world\n" and
print it adding newline like puts ? I'm going to need extra functions. Maybe
atoi and others. */
return puts(string); /* from argc or argv[] */
Am I making sense ?
Bill
.
- Follow-Ups:
- Re: lost. Help
- From: Lew Pitcher
- Re: lost. Help
- Prev by Date: Re: Linking with a particular shared library by full path overriding LD_LIBRARY_PATH
- Next by Date: [OpenCV] Extract en recognize barcode from image file.
- Previous by thread: Linking with a particular shared library by full path overriding LD_LIBRARY_PATH
- Next by thread: Re: lost. Help
- Index(es):
Relevant Pages
|