/*
- * $Id: gettok.c,v 1.5 2001-12-03 05:03:38 jmarcus Exp $
+ * $Id: gettok.c,v 1.6 2009-10-13 22:55:37 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#endif /* HAVE_CONFIG_H */
#include <sys/param.h>
-
-/* STDC check */
-#if STDC_HEADERS
#include <string.h>
-#else /* STDC_HEADERS */
-#ifndef HAVE_STRCHR
-#define strchr index
-#define strrchr index
-#endif /* HAVE_STRCHR */
-char *strchr (), *strrchr ();
-#ifndef HAVE_MEMCPY
-#define memcpy(d,s,n) bcopy ((s), (d), (n))
-#define memmove(d,s,n) bcopy ((s), (d), (n))
-#endif /* ! HAVE_MEMCPY */
-#endif /* STDC_HEADERS */
-
#include <ctype.h>
#include <pwd.h>
-#include "globals.h"
+#include <atalk/globals.h>
static char *l_curr;
static char *l_end;
-void initline( len, line )
-int len;
-char *line;
+void initline( int len, char *line)
{
l_curr = line;
l_end = line + len;
#define ST_BEGIN 2
int
-parseline( len, token )
-int len;
-char *token;
+parseline(int len, char *token)
{
char *p, *e;
int state;
}
#ifdef notdef
-void parseline( token, user )
-char *token, *user;
+void parseline(char *token, char *user)
{
char *p = pos, *t = token, *u, *q, buf[ MAXPATHLEN ];
struct passwd *pwent;