OpenLcbCLib 1.0 Alpha
OpenSource C Library to create OpenLcb/Lcc Nodes
Loading...
Searching...
No Matches
mustangpeak_string_helper.h
Go to the documentation of this file.
1
39// This is a guard condition so that contents of this file are not included
40// more than once.
41
42#ifndef __MUSTANGPEAK_STRING_HELPER__
43#define __MUSTANGPEAK_STRING_HELPER__
44
45#ifdef __cplusplus
46extern "C"
47{
48#endif /* __cplusplus */
49
63 extern char *strnew(int char_count);
64
77 extern char *strnew_initialized(int char_count);
78
96 extern char *strcatnew(char *str1, char *str2);
97
98#ifdef __cplusplus
99}
100#endif /* __cplusplus */
101
102#endif /* __MUSTANGPEAK_STRING_HELPER__ */
char * strnew(int char_count)
Allocates a new uninitialized string buffer.
Definition mustangpeak_string_helper.c:59
char * strnew_initialized(int char_count)
Allocates a new zero-initialized string buffer.
Definition mustangpeak_string_helper.c:81
char * strcatnew(char *str1, char *str2)
Concatenates two strings into a newly allocated buffer.
Definition mustangpeak_string_helper.c:116

Copyright (c) 2026 Jim Kueneman all rights reserved. See the License