Search:

Type: Posts; User: Stanley S

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,541

    Signal Handling - Are they part of ANSI C?

    Hi,

    Are Signal Handling part of ANSI C?

    I am not able to find any reference of Sig Handling in Stephen Prata's "C Primer Plus".

    The usage of signals is to trap errors I guess. (It looks...
  2. In this case, Do I have to malloc() every...

    In this case,

    Do I have to malloc() every single char pointers? For eg:



    World = "world";


    If I do not malloc() "World", am I right to say that "World" is just writing somewhere in the...
  3. Oh. Silly me. I must copy into the...

    Oh. Silly me. I must copy <somethings> into the pointed location.

    Thank you Salem.



    #include <stdio.h>
    #include <stdlib.h>

    int main(int argc, char *argv[])
  4. strcat() and segmentation faults. But malloc() already done.

    Hi,

    I'm puzzled. Why does the following cause a seg fault? Notwithstanding
    that I've already malloc() a certain space for "Hello".

    I do understand that using a fixed length array will work...
Results 1 to 4 of 4