Search Results

Search: Posts Made By: Alabama
2,240
Posted By Don Cragun
You're obviously not telling us everything: The...
You're obviously not telling us everything:
The variables file_name and op haven't been declared.
You haven't shown us what headers are being included.
The diagnostic message you say you're...
2,240
Posted By rajamadhavan
Did you try ? getopt(argc, argv,...
Did you try ?


getopt(argc, argv, "ABCD:")
2,240
Posted By Don Cragun
What OS are you using? Exactly what is the...
What OS are you using?

Exactly what is the command line that this code is parsing?

Is there any code in your script that modifies argc, argv, or any of the strings pointed to by argv[0] through...
2,240
Posted By Chubler_XL
You need a colon following the D in your...
You need a colon following the D in your optstring, if it is supposed to take an value (i.e. -D7 ) and not just be a flag (eg -D):

getopt(argc, argv, "A:B:C:D:")

btw break ends the case...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy