help

mitchemt at silver.bacs.indiana.edu mitchemt at silver.bacs.indiana.edu
Fri Sep 23 07:34:00 AEST 1988



struct string
   {
     char content;
     struct string *next;
   };
typedef struct string STRING;

main()
  {
    STRING *stringptr;
    STRING *newstrptr;
    newstrptr = newstrel(newstrptr);     
    (*newstrptr).content = 'a';   
  }    

    STRING newstrel(sptr)
    STRING *sptr;
     {
       sptr = ( STRING * ) malloc (sizeof(STRING));
       return sptr;
     }
     



More information about the Comp.lang.c mailing list