aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/StringUtil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/StringUtil.cc')
-rw-r--r--src/FbTk/StringUtil.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/FbTk/StringUtil.cc b/src/FbTk/StringUtil.cc
index 1a6814c..11bd87d 100644
--- a/src/FbTk/StringUtil.cc
+++ b/src/FbTk/StringUtil.cc
@@ -58,18 +58,6 @@ namespace FbTk {
58namespace StringUtil { 58namespace StringUtil {
59 59
60/** 60/**
61 Takes a pointer to string *s as an argument,
62 creates a new string n, copies s to n and
63 returns a pointer to n.
64*/
65char *strdup(const char *s) {
66 int l = strlen(s) + 1;
67 char *n = new char[l];
68 strncpy(n, s, l);
69 return n;
70}
71
72/**
73 Tries to find a string in another and 61 Tries to find a string in another and
74 ignoring the case of the characters 62 ignoring the case of the characters
75 Returns 0 on success else pointer to str. 63 Returns 0 on success else pointer to str.