473,414 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Is argv writebale?

Supposed the ith actual argument argv[i] has length n. Am I allowed to
write any string of length <=n to argv[i] ?

Thanks in advance,
Alex.

PS. To email me, remove "loeschedies" from the email address given.
Jul 22 '05 #1
4 1111
Alexander Malkis wrote:
Supposed the ith actual argument argv[i] has length n. Am I allowed to
write any string of length <=n to argv[i] ?


There was just a recent dsicussion of this here. Use Google to read it.
Jul 22 '05 #2
Bill Seurer wrote:

Alexander Malkis wrote:
Supposed the ith actual argument argv[i] has length n. Am I allowed to
write any string of length <=n to argv[i] ?


There was just a recent dsicussion of this here. Use Google to read it.


Could you provide a google link for it then? Other than this thread,
which has been going on since May 20, I don't seem to find anything.

Brian Rodenborn
Jul 22 '05 #3
Default User wrote:
Bill Seurer wrote:
Alexander Malkis wrote:

Supposed the ith actual argument argv[i] has length n. Am I allowed to
write any string of length <=n to argv[i] ?


There was just a recent dsicussion of this here. Use Google to read it.

Could you provide a google link for it then? Other than this thread,
which has been going on since May 20, I don't seem to find anything.


A second copy of Alexander's original posting showed up today (albeit
still dated on the 20th) with a different message/thread ID. That's
what I was replying to though I didn't realize it was the same posting
as what started the other thread.
Jul 22 '05 #4
Bill Seurer wrote:

Default User wrote:

Could you provide a google link for it then? Other than this thread,
which has been going on since May 20, I don't seem to find anything.


A second copy of Alexander's original posting showed up today (albeit
still dated on the 20th) with a different message/thread ID. That's
what I was replying to though I didn't realize it was the same posting
as what started the other thread.


Ah, I see. I think it was actually posted twice originally, I'm not sure
why it's just now showing up at your server, but them's the breaks of
usenet sometimes.


Brian Rodenborn
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Robin Sanderson | last post by:
Sorry in advance if this is a stupid question - I am new to C++. In the process of converting program to be run from the command line into a function to be run from another program I noticed...
9
by: mahurshi | last post by:
i have a quick question i am putting a debug flag in my program (i really dont need this feature, but i figured it might be useful when i get into trouble) so i want to check if argv is the...
28
by: Charles Sullivan | last post by:
I'm working on a program which has a "tree" of command line arguments, i.e., myprogram level1 ]] such that there can be more than one level2 argument for each level1 argument and more than one...
5
by: jab3 | last post by:
(again :)) Hello everyone. I'll ask this even at risk of being accused of not researching adequately. My question (before longer reasoning) is: How does declaring (or defining, whatever) a...
32
by: mnaydin | last post by:
Assume the main function is defined with int main(int argc, char *argv) { /*...*/ } So, is it permitted to modify the argv array? The standard says "The parameters argc and argv and the strings...
22
by: Joe Smith | last post by:
It is nothing short of embarrassing to feel the need to ask for help on this. I can't see how I would make the main control for this. What I want is a for loop and a test condition. And while I...
4
by: interec | last post by:
Hi Folks, I am writing a c++ program on redhat linux using main(int argc, wchar_t *argv). $LANG on console is set to "en_US.UTF-8". g++ compiler version is 3.4.6. Q1. what is the encoding of...
11
by: vicky | last post by:
hi all, please tell me with example, how the *argv point to the the no of strings.
4
by: Romulo Carneiro | last post by:
Hi, I'm programming in Windows XP and i'm trying to get all arguments of some application, but i only have gotten five argv. When i put more then five(5), it didn't display. =>Input Command Line:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.