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


Ignore:
Timestamp:
2011-08-03T17:34:57Z (13 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1940326
Parents:
52a79081 (diff), 3fab770 (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.
Message:

Merge from mainline

File:
1 edited

Legend:

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

    r52a79081 ra33f0a6  
    4949#define STR_BOUNDS(length)  ((length) << 2)
    5050
     51/**
     52 * Maximum size of a buffer needed to a string converted from space-padded
     53 * ASCII of size @a spa_size using spascii_to_str().
     54 */
     55#define SPASCII_STR_BUFSIZE(spa_size) ((spa_size) + 1)
     56
    5157extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
    5258extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz);
     
    7682
    7783extern int wstr_to_str(char *dest, size_t size, const wchar_t *src);
     84extern int spascii_to_str(char *dest, size_t size, const uint8_t *src, size_t n);
     85extern void wstr_to_str(char *dest, size_t size, const wchar_t *src);
    7886extern char *wstr_to_astr(const wchar_t *src);
    7987extern int str_to_wstr(wchar_t *dest, size_t dlen, const char *src);
Note: See TracChangeset for help on using the changeset viewer.