poser
A C framework for POsix SERvices
Loading...
Searching...
No Matches
util.h
Go to the documentation of this file.
1#ifndef POSER_CORE_UTIL_H
2#define POSER_CORE_UTIL_H
3
8#include <poser/decl.h>
9
10#include <stddef.h>
11
18DECLEXPORT void *
19PSC_malloc(size_t size)
20 ATTR_MALLOC ATTR_RETNONNULL ATTR_ALLOCSZ((1));
21
29DECLEXPORT void *
30PSC_realloc(void *ptr, size_t size)
31 ATTR_RETNONNULL ATTR_ALLOCSZ((2));
32
38DECLEXPORT char *
39PSC_copystr(const char *src)
40 ATTR_MALLOC;
41
47DECLEXPORT char *
48PSC_lowerstr(const char *src)
49 ATTR_MALLOC;
50
58DECLEXPORT char *
59PSC_joinstr(const char *delim, char **strings)
60 ATTR_MALLOC ATTR_NONNULL((1));
61
62#endif
char * PSC_joinstr(const char *delim, char **strings)
Join multiple strings.
void * PSC_malloc(size_t size)
Allocate memory.
char * PSC_lowerstr(const char *src)
Lowercase a string.
void * PSC_realloc(void *ptr, size_t size)
Re-allocate memory.
char * PSC_copystr(const char *src)
Copy a string.