I want to create a loop that adds the first value "this" by the command
strcat(l->value,l->db.param_value.val);
now i want to append a null and move it one more space to the right so i can...
Type: Posts; User: KMAN999
I want to create a loop that adds the first value "this" by the command
strcat(l->value,l->db.param_value.val);
now i want to append a null and move it one more space to the right so i can...
All im trying to do is add a string to strcpy and concatenate with a short. But i am getting two error doing this the code is below
struct local_stack_def
{
char *result;
char...
if (l->resultGIL != 0){
printf("FILENAME_RESOLVE_ ERROR #:%d -Error occured. ", l->resultGIL);
exit(EXIT_FAILURE);
}
Thank you!
I want the address of l_temp passed to l, is the syntax i provided right?!
struct local_stack_def{
_cc_status cc;
char command_E[30];
char DataEntry[200];
char user_id_E[200];
char...
thanks!
In a switch statement is it possible to do something like this in c
result = -1;
switch ( result ) {
case 1:
printf("FILENAME ERROR #:%d -Partial match; the name fits the left-hand...
Thank my mistake of forgetting j= 0 however the output is I\OSTF$.SDSMMCC.RSC.RSST and not \ISOFT.$DSMSCM.CSR.CSRTEST
sorry it was [j*2] however still doesnt print anything
The reason i start at 2 is because the first to values in the array are assigned to something else
short ret_values_maxlen = 200;
short user_maxlen=200;
short volsubvol_maxlen = 200;...
I re-changed the variables but i am not getting anything printed out?
char pd__prgm_name[200] = { 0 };
char buf[2], tmp;
short ret_vals_list[200];
int i, j=0;
The reason is that the function that is built-in only returns an array of short so i need to convert it, i tried casting it as a char but it does not return all the values its missing characters.
If i do a printf of ret_vals_list starting from index 2 this is what i get
for(i=2; ret_vals_list[i]; i++){
printf("data is: %i\n",ret_vals_list[i]);
}
OUTPUT is:
The first two values in my array i want to keep it stored as a short therefore ret_vals_list[0] i want it to be equal to short pd_id and ret_vals_list[1] to short pd_len[1], and also the rest of...
I meant the values i get from the short array to places it in a struct that i created above. i'm not trying to assign the array inside a struct.
I have a function which returns an array of shorts,
short ret_vals_list[200];
struct prgm_details{
short pd_id[1];
short pd_len[1];
For any future readers, when dealing with tacl and c, you can have empty parameters that are optional.
To omit parameters, use a place-holding comma for each omitted parameter up to the last...
So the & is not required, in the book it says the & is used to retrieve the address and copy it to the content of the pointer.
Okay i was reading up on array and pointers, i have a function which requires the following input below and i want to know if im correctly placing the syntax for it :
#include...
I wasn't getting a syntax error for that but i tried the below syntax
result = PROCESS_GETINFOLIST_ (ret_attr_list, ret_attr_count, ret_vals_list, ret_values_maxlen, &ret_val_length);
...
I actually got more errors
Warning 86: argument 6 conflicts with formal definition
Warning 86: argument 7 conflicts with formal definition
Warning 32: invalid conversion specified
...
what you mean im not fluent in c. supplied as a short instead of a pointer to short?
This is a TACL builtin function i assume very few might know of this, The syntax for this function is
#include <cextdecs(PROCESS_GETINFOLIST_)>
short PROCESS_GETINFOLIST_ ( [ short cpu ] /* i 1...
Sorry here is more of the coding
char program_id_E [30] = {"FUPOPER"};
char program_name_E [30] = {"$dsmscm.oper*.fup"};
char user_id_E [31][30] ={"stuff","stuff.*"};
char command_E...
The & sign works great for the first two arrays however within the for loop it crashes with the same error above Warning 86: argument 2 conflicts
strcpy(DataEntry,&program_id[0]);
...