Commit efbe214c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Two comments mentioned s_free(), but the actual name of the function

is s_clear().  Fixed the comments.
parent 554cc97a
/*
* $Id: s-string.h,v 1.17 2002/08/17 17:24:19 ceder Exp $
* $Id: s-string.h,v 1.18 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.17 2002/08/17 17:24:19 ceder Exp $
* $Id: s-string.h,v 1.18 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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment