| 46 | |
| 47 | |
| 48 | void string_new( string * s ) |
| 49 | { |
| 50 | s->value = s->opt; |
| 51 | s->size = 0; |
| 52 | s->capacity = sizeof( s->opt ); |
| 53 | s->opt[ 0 ] = 0; |
| 54 | #ifndef NDEBUG |
| 55 | memset( s->magic, JAM_STRING_MAGIC, sizeof( s->magic ) ); |
| 56 | #endif |
| 57 | assert_invariants( s ); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | void string_free( string * s ) |
no test coverage detected