Thread: Structures

  1. #1
    Registered User
    Join Date
    Sep 2001

    Angry Structures

    How do I go about using a structure as a function parameter?

  2. #2
    Registered User breed's Avatar
    Join Date
    Oct 2001
    Passing structs to func with a string pointer

    struct mystruct{
    list members;

    void in_data(struct mystruct, *in_str);

    Oops vVv has already said this.

    Oh well , to pass anything to a function you need to use the data type in this case the struct & an argument this uses a string pointer.
    Last edited by breed; 01-30-2002 at 04:16 AM.
    Before you judge a man, walk a mile in his
    shoes. After that, who cares.. He's a mile away and you've got
    his shoes.
    ************William Connoly

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  2. Structures, passing array of structures to function
    By saahmed in forum C Programming
    Replies: 10
    Last Post: 04-05-2006, 11:06 PM
  3. Input output with structures
    By barim in forum C Programming
    Replies: 10
    Last Post: 04-27-2004, 08:00 PM
  4. pointers to arrays of structures
    By terryrmcgowan in forum C Programming
    Replies: 1
    Last Post: 06-25-2003, 09:04 AM
  5. Methods for Sorting Structures by Element...
    By Sebastiani in forum C Programming
    Replies: 9
    Last Post: 09-14-2001, 12:59 PM