home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <string.h>
-
- #include "sys/unix.h"
-
- int __uname_dont_pack = 0;
-
- int
- main ()
- {
- int l;
- char b[81];
-
- while (fgets (b, 256, stdin))
- {
- l = strlen (b) - 1;
- if (l >= 40)
- l = 39;
- b[l] = 0;
- strncpy (b + 40, __uname (b, 0), 39);
- b[80] = 0;
- memset (b + l, ' ', 40 - l);
- puts (b);
- }
- return 0;
- }
-