Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/str.h

    r4805495 rda680b4b  
    11/*
    2  * Copyright (c) 2001-2004 Jakub Jermar
    32 * Copyright (c) 2005 Martin Decky
    43 * Copyright (c) 2011 Oleg Romanenko
     
    3534 */
    3635
    37 #ifndef _LIBC_STR_H_
    38 #define _LIBC_STR_H_
     36#ifndef LIBC_STR_H_
     37#define LIBC_STR_H_
    3938
    4039#ifdef __cplusplus
     
    4342
    4443#include <errno.h>
    45 #include <stdbool.h>
     44#include <mem.h>
    4645#include <stddef.h>
    4746#include <stdint.h>
     47#include <stdbool.h>
    4848
    49 #include <mem.h>
    50 
    51 /* Common Unicode characters */
    52 #define U_SPECIAL      '?'
     49#define U_SPECIAL  '?'
    5350
    5451/** No size limit constant */
     
    6663extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    6764extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz);
    68 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
     65extern errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
    6966
    7067extern size_t str_size(const char *str);
     
    119116extern bool wstr_remove(wchar_t *str, size_t pos);
    120117
    121 extern char *str_dup(const char *src);
    122 extern char *str_ndup(const char *src, size_t n);
     118extern char *str_dup(const char *);
     119extern char *str_ndup(const char *, size_t max_size);
    123120
    124121extern char *str_tok(char *, const char *, char **);
Note: See TracChangeset for help on using the changeset viewer.