home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
source
/
macify13.shr
/
convert.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-05-20
|
1KB
|
30 lines
/*************************************************************************
** **
** Char conversion routine for MACIFY **
** **
*************************************************************************/
#include <stdio.h> /* standard I/O functions */
#include <string.h> /* BSD uses strings.h */
#include "macify.h" /* Program-specific defines */
char do_the_conversion(inchar, thing_to_do)
char inchar;
int thing_to_do;
{
if (thing_to_do == 1) /* Doing UNIX -> Mac? */
{
if (inchar == UNIX_EOL) /* is it the Unix end? */
return(MAC_EOL); /* pass back Mac equiv. */
else
return(inchar); /* echo back the char */
}
else if (thing_to_do == 2) /* Doing Mac -> UNIX? */
{
if (inchar == MAC_EOL) /* is it the Mac end? */
return(UNIX_EOL); /* pass back UNIX equiv. */
else
return(inchar); /* echo back the char */
}
}