Results 1 to 2 of 2

Thread: using farmalloc for struct

  1. #1

    Thread Starter
    Lively Member satti charvak's Avatar
    Join Date
    Apr 2001
    Location
    noida, india
    Posts
    90

    Unhappy using farmalloc for struct

    can anyone please tell me the syntax of using "farmalloc"
    pointer to a structure.

    i would be thankful

    satti charvak

  2. #2
    jim mcnamara
    Guest
    Turbo C:

    Code:
    main(){
     struct a{
           long b;
     };
     struct a *b;
     b = (struct a *) farmalloc(sizeof(struct a) );
    
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width