2022-06-02 14:20:55 +03:00
|
|
|
/* This software is licensed by the MIT License, see LICENSE file */
|
|
|
|
/* Copyright © 2022 Gregory Lirent */
|
|
|
|
|
|
|
|
#include <string.h>
|
2022-08-22 11:56:16 +03:00
|
|
|
#include "__attributes.h"
|
2022-06-02 14:20:55 +03:00
|
|
|
|
2022-08-22 11:56:16 +03: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 14:20:55 +03:00
|
|
|
|
2022-08-16 01:36:37 +03: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 14:20:55 +03:00
|
|
|
|
2022-08-16 01:36:37 +03: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 14:20:55 +03:00
|
|
|
|
2022-08-22 11:56:16 +03:00
|
|
|
#endif /* LIBCDSB_BITS_CSTRING_H */
|