2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-12 12:02:24 +00:00
Files
build/src/engine/strings.h
Dave Abrahams afcd1ca78e Modified Files:
jam.c strings.c strings.h

Fixed a string bug; added reinforcing tests to detect it.


[SVN r11642]
2001-11-09 14:47:12 +00:00

30 lines
674 B
C

#ifndef STRINGS_DWA20011024_H
# define STRINGS_DWA20011024_H
# include <stddef.h>
typedef struct string
{
char* value;
unsigned long size;
unsigned long capacity;
char opt[32];
#ifndef NDEBUG
char magic[4];
#endif
} string;
void string_new( string* );
void string_copy( string*, char* );
void string_free( string* );
void string_append( string*, char* );
void string_append_range( string*, char*, char* );
void string_push_back( string* s, char x );
void string_reserve( string*, size_t );
void string_truncate( string*, size_t );
void string_pop_back( string* );
char string_back( string* );
void string_unit_test();
#endif // STRINGS_DWA20011024_H