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

 
Output of file : IOVTOA.C contained in archive : CSRC2.ZIP
/*
* i o v t o a . c
*/

/*)LIBRARY
*/

#ifdef DOCUMENTATION

title iovtoa Convert File Name to Ascii - obsolete
index Convert file name to Ascii - obsolete

synopsis

char *
iovtoa(fd,buffer);
FILE *fd;
char *buffer;

description

iovtoa() is an obsolete name and form of fgetname(). It exists
solely for compatibility purposes; new programs should use fgetname()
and old ones SHOULD (eventually) be converted.

Note that iovtoa() differs from fgetname() in only one way: While
fgetname() returns buffer, iovtoa() returns a pointer to the null
trailing the extracted name.

bugs

Obsolete.

author

Jerry Leichter

#endif

/*
* )EDITLEVEL=05
* Edit history
* 0.0 19-Jun-81 JSL Invention
*/

#include

extern char *fgetname(); /* The real one */

char *
iovtoa(fd,buffer)
FILE *fd;
char *buffer;
{
fgetname(fd,buffer);
while(*buffer++) /* Scan 'till past the null */
;
return(buffer - 1);
}


  3 Responses to “Category : C Source Code
Archive   : CSRC2.ZIP
Filename : IOVTOA.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/