home *** CD-ROM | disk | FTP | other *** search
- /*----------------------------------------------------------------------
- * $Id: strlen.c,v 1.1 1993/03/04 18:51:20 carlson Exp $
- *
- * Description:
- * This program returns the length of the 'word' passed on the
- * command line.
- *
- * Revision History:
- * $Log: strlen.c,v $
- * Revision 1.1 1993/03/04 18:51:20 carlson
- * Initial revision
- *
- * Revision 1.1 1993/02/24 14:14:17 chris
- * Initial revision
- *
- *----------------------------------------------------------------------*/
-
- #include <stdio.h>
- #include <errno.h>
-
- main (int argc, char *argv[])
- {
- register int i = 0;
-
- if (argc > 1)
- i = strlen (argv[1]);
-
- printf ("%d\n", i);
- }
-