Coder's Guild Mailing List

Linux C Struct Problem

Posted by evilhackr on 2001-02-05

Hey,
    I'm working on a socket related program and I'm having alot of trouble.
One thing I'm stuck on is defining the value of 'b' in main(). I have it
defined in struct recv. The line it's on is int b[4];. Thats set before
main() starts. I need to be able to use the value of 'b' inside of main but
I don't know how to tell it to look in struct recv for the int/char stuff.
    When I'm done with getting that defined. ('b' is undefined) Then I need
to multiply the four ints by each other and output them again. Would you
help me with that too? If you need what code I have so far then I'll send it
to you.

    Thank you,
        Paul/nonex/evilhackr [evilhackr@xxxxxxxxx.xxx]