Pelles C forum

C language => Beginner questions => Topic started by: drhoule on October 04, 2013, 12:38:54 PM

Title: Command line argument ending with a slash and quote
Post by: drhoule on October 04, 2013, 12:38:54 PM
int main( int argc , char **argv);

If the argument is "C:\New Dir\" the result is argv[1]=C:\New Dir"

Something I am doing wrong?

Dr
Title: Re: Command line argument ending with a slash and quote
Post by: TimoVJL on October 04, 2013, 02:29:19 PM
int main( int argc , char **argv);

If the argument is "C:\New Dir\" the result is argv[1]=C:\New Dir"

Something I am doing wrong?

Dr
Here (http://msdn.microsoft.com/en-us/library/a1y7w461(v=vs.80).aspx) is useful info for that.
Title: Re: Command line argument ending with a slash and quote
Post by: drhoule on October 04, 2013, 04:29:40 PM
Thank you.
Dr