Search:

Type: Posts; User: sismail

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    2,798

    Thanks to all , here is the right code I used to...

    Thanks to all , here is the right code I used to fix this issue:



    args_original = getline();

    args = malloc(20 * 2 * sizeof(char*));

    /* print first array */ ...
  2. Replies
    8
    Views
    2,798

    you need to take it easy on your self ;-) But...

    you need to take it easy on your self ;-)
    But thanks anyway.
  3. Replies
    8
    Views
    2,798

    thanks for the info. but hte link is broken

    thanks for the info. but hte link is broken
  4. Replies
    8
    Views
    2,798

    Thanks for your answer, I actually tried the...

    Thanks for your answer, I actually tried the following:



    s = (getSize(args_original) * sizeof(char));
    args = malloc(s);


    ...
  5. Replies
    8
    Views
    2,798

    Memory error when copying char pointer

    Dear All,
    am trying to copy on char ** object to another but getting this memeory error:
    VM: Pagefault SIGSEGV bad addr no page read .. Memory fault (core dumped).

    The original array is being...
  6. Replies
    6
    Views
    2,307

    Thanks a lot that was the problem. Changed Char...

    Thanks a lot that was the problem. Changed Char to char and all is good.
    Appreciate the help.
  7. Replies
    6
    Views
    2,307

    Here is the code .. By the way am using Minix cc...

    Here is the code .. By the way am using Minix cc compiler. Every thing was working just fine untill i added the function



    #include <stdio.h>
    #include <unistd.h>
    #include <sys/types.h>...
  8. Replies
    6
    Views
    2,307

    write a function to retern char **

    Hi All, am trying to write a function that returns a pointer to a character pointer
    something of the form

    char ** get_command(int loc);
    but I get an error at the prototype definition that * is...
Results 1 to 8 of 8