UNIX korn shell
I have a Korn shell program I am writing where I would like to pass a variable
number to a C program. This will get passed as a char variable but I would like
to convert it to a long
This is my call to the C program from Korn
This will get passed into the main via:
int GETCUSTIDAPP(int argc, char **argv)
Where I set the variable passed in to a variable called
Now, I need to pass in this custId to another function Get_Address and convert it to a long I'm having trouble with it understanding how to do it:
Here is what I have:
int Get_Address(char* customer) --> is this the right way to pass it in?
Also how do I convert this value to a long within the function? I need to use this value in a sql call as a number later in the code.
I hope this made some sense.