Changeset ab936440 in mainline for uspace/lib/c/include/str.h


Ignore:
Timestamp:
2019-02-12T20:42:42Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f31ca47
Parents:
7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
Message:

Merge branch 'master' into bdsh_alias

Conflicts:

uspace/app/bdsh/Makefile
uspace/app/bdsh/cmds/modules/modules.h

Ccheck correction and removing header which includes itself

File:
1 edited

Legend:

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

    r7f7817a9 rab936440  
    11/*
     2 * Copyright (c) 2001-2004 Jakub Jermar
    23 * Copyright (c) 2005 Martin Decky
    34 * Copyright (c) 2011 Oleg Romanenko
     
    3435 */
    3536
    36 #ifndef LIBC_STR_H_
    37 #define LIBC_STR_H_
     37#ifndef _LIBC_STR_H_
     38#define _LIBC_STR_H_
    3839
    3940#ifdef __cplusplus
     
    4243
    4344#include <errno.h>
    44 #include <mem.h>
     45#include <stdbool.h>
    4546#include <stddef.h>
    4647#include <stdint.h>
    47 #include <stdbool.h>
    4848
    49 #define U_SPECIAL  '?'
     49#include <mem.h>
     50
     51/* Common Unicode characters */
     52#define U_SPECIAL      '?'
    5053
    5154/** No size limit constant */
     
    6366extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    6467extern wchar_t str_decode_reverse(const char *str, size_t *offset, size_t sz);
    65 extern errno_t chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
     68extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);
    6669
    6770extern size_t str_size(const char *str);
     
    116119extern bool wstr_remove(wchar_t *str, size_t pos);
    117120
    118 extern char *str_dup(const char *);
    119 extern char *str_ndup(const char *, size_t max_size);
     121extern char *str_dup(const char *src);
     122extern char *str_ndup(const char *src, size_t n);
    120123
    121124extern char *str_tok(char *, const char *, char **);
Note: See TracChangeset for help on using the changeset viewer.