Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
efbe214c
Commit
efbe214c
authored
22 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Two comments mentioned s_free(), but the actual name of the function
is s_clear(). Fixed the comments.
parent
554cc97a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libraries/libmisc/s-string.h
+4
-4
4 additions, 4 deletions
src/libraries/libmisc/s-string.h
with
4 additions
and
4 deletions
src/libraries/libmisc/s-string.h
+
4
−
4
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment