Search:

Type: Posts; User: KMAN999

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,112

    How do i append a null in string?!

    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...
  2. Replies
    2
    Views
    1,893

    Error with strcpy and strcat

    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...
  3. Printf error "address pointing at code space is taken"

    if (l->resultGIL != 0){
    printf("FILENAME_RESOLVE_ ERROR #:%d -Error occured. ", l->resultGIL);
    exit(EXIT_FAILURE);
    }
  4. Thank you!

    Thank you!
  5. How to point an address of one struct to another struct variable

    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...
  6. Thread: Switch Case

    by KMAN999
    Replies
    2
    Views
    2,308

    thanks!

    thanks!
  7. Thread: Switch Case

    by KMAN999
    Replies
    2
    Views
    2,308

    Switch Case

    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...
  8. Thank my mistake of forgetting j= 0 however the...

    Thank my mistake of forgetting j= 0 however the output is I\OSTF$.SDSMMCC.RSC.RSST and not \ISOFT.$DSMSCM.CSR.CSRTEST
  9. sorry it was [j*2] however still doesnt print...

    sorry it was [j*2] however still doesnt print anything
  10. The reason i start at 2 is because the first to...

    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;...
  11. I re-changed the variables but i am not getting...

    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;
  12. The reason is that the function that is built-in...

    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.
  13. If i do a printf of ret_vals_list starting from...

    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:
  14. The first two values in my array i want to keep...

    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...
  15. I meant the values i get from the short array to...

    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.
  16. Returned array of shorts want to put into a structure.

    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];
  17. Replies
    10
    Views
    2,186

    For any future readers, when dealing with tacl...

    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...
  18. So the & is not required, in the book it says the...

    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.
  19. New at Array and Pointers , Quick Question

    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...
  20. Replies
    10
    Views
    2,186

    I wasn't getting a syntax error for that but i...

    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);


    ...
  21. Replies
    10
    Views
    2,186

    I actually got more errors Warning 86:...

    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
    ...
  22. Replies
    10
    Views
    2,186

    what you mean im not fluent in c. supplied as a...

    what you mean im not fluent in c. supplied as a short instead of a pointer to short?
  23. Replies
    10
    Views
    2,186

    PROCESS_GETINFOLIST_ Function Parameter Error

    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...
  24. Replies
    7
    Views
    1,520

    Sorry here is more of the coding char...

    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...
  25. Replies
    7
    Views
    1,520

    The & sign works great for the first two arrays...

    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]);
    ...
Results 1 to 25 of 33
Page 1 of 2 1 2