aboutsummaryrefslogtreecommitdiffstats
path: root/String.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:30 +0200
commite2b58f0ab81b2aafeb8c29a69abad7829fa21ab3 (patch)
treec4e410dd878ceed9fc058d14bad8011b423212fe /String.c
parenteaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (diff)
downloaddebian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.gz
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.tar.bz2
debian_htop-e2b58f0ab81b2aafeb8c29a69abad7829fa21ab3.zip
Imported Upstream version 1.0.1upstream/1.0.1
Diffstat (limited to 'String.c')
-rw-r--r--String.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/String.c b/String.c
index 81e9eee..adb6749 100644
--- a/String.c
+++ b/String.c
@@ -1,27 +1,23 @@
/*
-htop
+htop - String.c
(C) 2004-2011 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#define _GNU_SOURCE
#include "String.h"
+
+#include "config.h"
+
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
-#include "debug.h"
-
/*{
#define String_startsWith(s, match) (strstr((s), (match)) == (s))
}*/
-inline char* String_copy(const char* orig) {
- return strdup(orig);
-}
-
char* String_cat(const char* s1, const char* s2) {
int l1 = strlen(s1);
int l2 = strlen(s2);

© 2014-2024 Faster IT GmbH | imprint | privacy policy