diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-17 21:48:33 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-17 21:48:33 +0000 |
commit | ce4e6b1773da3bd1b35cd75793fc04d954655538 (patch) | |
tree | d7f069af161fed62d57b0408f72958b9b8d05b0d /usr.sbin/sade/misc.c | |
parent | 386e7f9af07ffffd5a33b457ff8f3dcb2d0d7075 (diff) | |
download | src-ce4e6b1773da3bd1b35cd75793fc04d954655538.tar.gz src-ce4e6b1773da3bd1b35cd75793fc04d954655538.zip |
Init network at proper time.
Notes
Notes:
svn path=/head/; revision=16462
Diffstat (limited to 'usr.sbin/sade/misc.c')
-rw-r--r-- | usr.sbin/sade/misc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c index 3f84540ccbc9..559990a0948c 100644 --- a/usr.sbin/sade/misc.c +++ b/usr.sbin/sade/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.17 1996/04/23 01:29:29 jkh Exp $ + * $Id: misc.c,v 1.18 1996/04/28 03:27:21 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -122,6 +122,16 @@ string_copy(char *s1, char *s2) return s1; } +/* convert an integer to a string, using a static buffer */ +char * +itoa(int value) +{ + static char buf[13]; + + snprintf(buf, 12, "%d", value); + return buf; +} + Boolean directory_exists(const char *dirname) { |