Thread: what is BUFSIZ

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    12
    Rep Power
    0

    what is BUFSIZ


    can anyone explain what BUFSIZ is, when you would need to use it and how would i use it if i needed it?
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    Sounds like a defined constant in one of your include files. By convention, constants are defined as UPPERCASE in a lot of C programs (something like this):

    #define BUFSIZ 512

    Most likely, this looks like the size of a buffer of some sort.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    12
    Rep Power
    0
    in that case could you tell be what a buffer does in C programming
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    I should have used the word array instead of buffer. Does this make it clearer :)

IMN logo majestic logo threadwatch logo seochat tools logo