LibJuno 0.32.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
string_direct.h
Go to the documentation of this file.
1/*
2 MIT License
3
4 Copyright (c) 2025 Robin A. Onsay
5
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files
8 (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge,
10 publish, distribute, sublicense, and/or sell copies of the Software,
11 and to permit persons to whom the Software is furnished to do so,
12 subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
16*/
17
27#ifndef JUNO_STRING_DIRECT_H
28#define JUNO_STRING_DIRECT_H
30#include "juno/status.h"
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
37
39JUNO_STATUS_T JunoString_Init(JUNO_STRING_T *ptJunoString, JUNO_MEMORY_ALLOC_T *ptAlloc, const char *pcCStr, size_t zCStrSize);
41JUNO_STATUS_T JunoString_AppendCStr(JUNO_STRING_T *ptJunoString, const char *pcCStr, size_t zCStrSize);
42JUNO_STATUS_T JunoString_GetSize(JUNO_STRING_T *ptJunoString, size_t *pzSize);
45
46#ifdef __cplusplus
47}
48#endif
49#endif // JUNO_STRING_DIRECT_H
50
union JUNO_MEMORY_ALLOC_TAG JUNO_MEMORY_ALLOC_T
Definition memory_api.h:76
enum JUNO_STATUS_TAG JUNO_STATUS_T
union JUNO_STRING_TAG JUNO_STRING_T
Definition string_api.h:40
JUNO_STATUS_T JunoString_AppendCStr(JUNO_STRING_T *ptJunoString, const char *pcCStr, size_t zCStrSize)
JUNO_STATUS_T JunoString_Free(JUNO_STRING_T *ptJunoString)
Frees resources allocated by juno_string.
JUNO_STATUS_T JunoString_Init(JUNO_STRING_T *ptJunoString, JUNO_MEMORY_ALLOC_T *ptAlloc, const char *pcCStr, size_t zCStrSize)
Initializes the module and resources for juno_string.
JUNO_STATUS_T JunoString_GetSize(JUNO_STRING_T *ptJunoString, size_t *pzSize)
JUNO_STATUS_T JunoString_Append(JUNO_STRING_T *ptJunoString, JUNO_STRING_T *ptNewJunoString)