Um no. argv[ x ] is a pointer to a character. argv[ x ][ 0 ] is a single character (assuming argv[ x ] actually contains something valid).
Quzah.
Printable View
I don't know how anyone who knew how command line arguments work could possibly expect that. They would have to leave a space between each letter for them to be considered their own argument. (Even then, they still end up with a string rather than just a single character.) If they didn't know how they worked, then there was room for clarification, wasn't there?Speak for yourself.
Quzah.
I don't mind being corrected at all; I joined these forums to learn more about programming after all. All I ask is that you're at least polite about it. For some reason you clearly feel the need to be a douche, although I can't imagine why. I mean really, such rudeness over something so utterly insignificant.
Clearly the OP understood what I meant, and I understand what I meant, so you are being overly pedantic.
I wasn't rude the first time around, and I even removed my impolite post before you submitted your reply. Clearly you needed to post what an ass I am, just in case anyone here still has some doubt. I assure you I don't care.
You cannot, by definition, be overly pedantic. Was I being overly pedantic just then? Grab a dictionary and figure it out.
Quzah.
Honestly, I don't know what I've done to provoke such an unusual display of hostility. I can assure you I didn't feel the "need" to post your "impolite post", you simply deleted it while I was writing mine.
Just forget it, this is completely pointless. I've noted my mistake, and I wont use "argv[x]" to describe a specific command line argument, regardless of its intended length, again if it makes you feel better.
The first thing you did is whined like a baby about a post that had no hostility in it. Then, I showed you what minor hostility was, thought better of it, and let you on your merry way. You still cried like a baby, so I patted you on your head. Now be a good lad and run along before you tear that thin skin of yours.See? I absolutely did need to be pedantic, because you're wrong in what you are saying you shouldn't do anymore. argv[x] does "describe a specific command line argument, regardless of its intended length".
What it does not describe is a single character. It's not a single character. argv[x] is a character pointer. If you stopped worrying about bleeding all over the place from imaginary wounds suffered by having such thin skin, and actually looked at what I said the first time around, you wouldn't be crying, and you wouldn't be wrong in your latest statement.
Get off the internet if you can't take the "abuse" I heaped on you in my first post.
Quzah.
You're just being utterly pathetic now, seriously. It's more amusing than anything, though. Oh well, nighty night.
This has run it's course.