home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
100-199
/
ff197.lzh
/
Stevie
/
mk.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-03-28
|
919b
|
52 lines
/*
* STEVIE - Simply Try this Editor for VI Enthusiasts
*
* Code Contributions By : Tim Thompson twitch!tjt
* Tony Andrews onecom!wldrdg!tony
* G. R. (Fred) Walter watmath!watcgl!grwalter
*/
#include "stevie.h"
char *
mkline(n)
int n;
{
static char lbuf[9];
int i = 6;
strcpy(lbuf, " ");
lbuf[i--] = (char) ((n % 10) + '0');
n /= 10;
if (n != 0) {
lbuf[i--] = (char) ((n % 10) + '0');
n /= 10;
}
if (n != 0) {
lbuf[i--] = (char) ((n % 10) + '0');
n /= 10;
}
if (n != 0) {
lbuf[i--] = (char) ((n % 10) + '0');
n /= 10;
}
if (n != 0) {
lbuf[i--] = (char) ((n % 10) + '0');
n /= 10;
}
return lbuf;
}
char *
mkstr(c)
char c;
{
static char s[2];
s[0] = c;
s[1] = NUL;
return s;
}