Hello,
i am trying to take data entered via the command line and assign it to a variable,
The affected values/fields:
Before main
#define KEY_BYTES 24
After main
unsigned char keyData[KEY_BYTES];
keyData = argv[2];
The compiler is complaing that keyData must be a modifiable...
I have a program that takes data entered from a keyboard and uses it as a random seed value, is there anyway to generate a string of up to 80 characters that could be used in place of data entered from a keyboard?
TrojanWarBlade....
The only assumption I have made is that the program is becomming more and more difficult.
Any suggestions or comments are greatly appreciated.
Thanks
cpjust....
Ok, i will bore you to tears now...
I wish i had a white board to show a more complete flow.... but...
First, this entire process is run in batch on a z/os 1.7.
Next, at the highest level in an assembler language program (A0) that reads a file and creates buffers consisting of...
a little more info on the "key" question from above
there is a little more existing code as follows:
ITEM xxxKeyItem = {NULL, 0};
xxxKeyItem.data = xxxKeyData;
xxxKeyItem.len = xxxKeyDataLen;
so to relate back to the previous post how can i set the xxxkeyitem.data and xxxkeyitem.len to the...
ok, let me take a different approach...
My c program is being called by another program and is being passed a string of characters which represnet a "key",
how do i capture that string of characters in my c program?
currently the "key" value is hard coded as:
static unsigned char...
to cpjust,
yep program 123 needs to be a separate program, infact program 123 is written in assembler language because its functioning at the operating system level, it has a twin called 456 which does the inverse of the functions that 123 does.
the reason for two programs it KISS, to me a...
xwb, 30 years huh, i wrote my first application in 1968 in a language called fargo.... long time
anyway, the c functions are running on an ibm mainframe under z/os 1.7 the c compiler is ibm's c.
so, whats ipc and how does one use shared memory?
I will tell you that I have not really gotten...
xwb...
I missed your item #2, and now i will show my ignorance, whats a prototype of a function???
Like i said at the beginning, i am not up on these new fangled programming languages...
xwb, thanks for the response....
Now the question is how do we establish a common frame of reference...
Lets say that I have program called abc it reads data from a disk file into what I call a workarea or buffer and I guess you would call an array, program abc also saves the length of the...
am a new to this board and came here out of desparation....
I need to modifiy a C program to allow the workareas (there could be up to 30) it uses to be defined externally and passed to the C program, also I need to pass the lengths of the work areas.
I have exhausted my limited knowledge of C...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.