Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
efbe214c
Commit
efbe214c
authored
Oct 04, 2002
by
Per Cederqvist
Browse files
Two comments mentioned s_free(), but the actual name of the function
is s_clear(). Fixed the comments.
parent
554cc97a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libraries/libmisc/s-string.h
View file @
efbe214c
/*
* $Id: s-string.h,v 1.1
7
2002/
08/17 17:24:19
ceder Exp $
* $Id: s-string.h,v 1.1
8
2002/
10/04 07:33:27
ceder Exp $
* Copyright (C) 1990-1996, 1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: s-string.h,v 1.1
7
2002/
08/17 17:24:19
ceder Exp $
* $Id: s-string.h,v 1.1
8
2002/
10/04 07:33:27
ceder Exp $
*
* s-string.h
* Our own string type. Definition of string type,
...
...
@@ -71,7 +71,7 @@ typedef long String_size;
* But the value of this may *not* be used in any destructive call,
* since str.string points to read-only memory.
* Note also that you need to call s_
free
() on any auto variables
* Note also that you need to call s_
clear
() on any auto variables
* of type String before exiting the block they are declared in,
* since otherwise the memory they use will still be allocated.
* This is of course the same rules as for normal pointers.
...
...
@@ -338,7 +338,7 @@ s_usr_strhead (String str1,
* object points to the same string as STR, but with a possibly
* shorter length. The pointer is unchanged *even* if the length
* should be 0, which means you don't "lose" the storage but can
* free it with s_
free
().
* free it with s_
clear
().
*/
extern
String
s_strip_trailing
(
String
str
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment