libcdsb/include/bits/cstring.h

20 lines
810 B
C
Raw Normal View History

2022-06-02 11:20:55 +00:00
/* This software is licensed by the MIT License, see LICENSE file */
/* Copyright © 2022 Gregory Lirent */
#include <string.h>
2022-08-22 08:56:16 +00:00
#include "__attributes.h"
2022-06-02 11:20:55 +00:00
2022-08-22 08:56:16 +00:00
#ifndef LIBCDSB_BITS_CSTRING_H
#define LIBCDSB_BITS_CSTRING_H
extern const char* libcdsb_char_to_cstring(int c) Warn_unused_result__;
2022-06-02 11:20:55 +00:00
2022-08-15 22:36:37 +00:00
extern size_t libcdsb_strlen (const char* s) Pure__ Warn_unused_result__ Nonnull__(1);
extern size_t libcdsb_strasciilen(const char* s) Pure__ Warn_unused_result__ Nonnull__(1);
2022-06-02 11:20:55 +00:00
2022-08-15 22:36:37 +00:00
extern char* libcdsb_strdup (const char* s) Warn_unused_result__ Nonnull__(1);
extern char* libcdsb_strndup(const char* s, size_t n) Warn_unused_result__ Nonnull__(1);
extern void* libcdsb_memndup(const void* m, size_t n) Warn_unused_result__ Nonnull__(1);
2022-06-02 11:20:55 +00:00
2022-08-22 08:56:16 +00:00
#endif /* LIBCDSB_BITS_CSTRING_H */