summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-05 16:56:58 +0000
committerRoy Marples <roy@marples.name>2007-04-05 16:56:58 +0000
commit235ce0896deb6ce04326f8a1514f0b600b7c8dc1 (patch)
tree4fca90eb94025062c7b2285b73852aaf0d337eae /common.h
parent505951cbf0e61e07f4452addf17680c3db6a0409 (diff)
downloaddhcpcd-235ce0896deb6ce04326f8a1514f0b600b7c8dc1.tar.xz
Add safe_strncpy function to ensure everything is NULL terminated
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.h b/common.h
index 3ef15804..e788e0bb 100644
--- a/common.h
+++ b/common.h
@@ -22,7 +22,9 @@
#ifndef COMMON_H
#define COMMON_H
+char *safe_strncpy (char *dst, const char *src, size_t size);
long uptime (void);
void *xmalloc (size_t size);
+
#endif