Category : C Source Code
Archive   : CSRC2.ZIP
Filename : FXITEM.C

 
Output of file : FXITEM.C contained in archive : CSRC2.ZIP
/*
* f x i t e m . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title fxitem Obtain (the Address of) an Item In a Flex
index Obtain (the address of) an item in a flex

synopsis

#ifdef vms
#include "c:flex.h"
#else
#include
#endif

char *
fxitem(fx,n)
register FLEX *fx;
unsigned n;

description

fxitem(fx,n) returns a pointer to the n'th item in the flex, if there
is one, or NULL if there isn't or the flex has been damaged. The
first item in the flex has item number 0.

bugs

author

Jerry Leichter

#endif

/*
* )EDITLEVEL=04
* Edit history
* 0.0 5-May-81 JSL Invention
* 0.1 7-May-81 JSL Cleanup
* 0.2 23-Jun-81 JSL Conversion to new documentation conventions
*/

#ifdef vms
#include "c:flex.h"
#else
#include
#endif
#define NULL 0

char *
fxitem(fx,n)
register FLEX *fx;
unsigned n;
{ if (fx==NULL || fx->fxdata==NULL || n >= fx->fxused)
return(NULL);
else return(fx->fxdata + n*fx->fxisz);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : FXITEM.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/