return convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len);
}
-ssize_t push_ascii_fstring(void *dest, const char *src)
-{
- return push_ascii(dest, src, sizeof(fstring), STR_TERMINATE);
-}
-
-ssize_t push_ascii_pstring(void *dest, const char *src)
-{
- return push_ascii(dest, src, sizeof(pstring), STR_TERMINATE);
-}
-
ssize_t push_pstring(void *dest, const char *src)
{
return push_ascii(dest, src, sizeof(pstring), STR_TERMINATE);
return src_len;
}
-ssize_t pull_ascii_pstring(char *dest, const void *src)
-{
- return pull_ascii(dest, src, sizeof(pstring), -1, STR_TERMINATE);
-}
-
-ssize_t pull_ascii_fstring(char *dest, const void *src)
-{
- return pull_ascii(dest, src, sizeof(fstring), -1, STR_TERMINATE);
-}
-
/**
* Copy a string from a char* src to a unicode destination.
*
return convert_string(CH_UNIX, CH_UTF8, src, src_len, dest, dest_len);
}
-ssize_t push_utf8_fstring(void *dest, const char *src)
-{
- return push_utf8(dest, src, sizeof(fstring), STR_TERMINATE);
-}
-
-ssize_t push_utf8_pstring(void *dest, const char *src)
-{
- return push_utf8(dest, src, sizeof(pstring), STR_TERMINATE);
-}
-
/**
* Copy a string from a unix char* src to a UTF-8 destination, allocating a buffer using talloc
*
return pull_ucs2(NULL, dest, src, sizeof(pstring), -1, STR_TERMINATE);
}
-ssize_t pull_ucs2_fstring(char *dest, const void *src)
-{
- return pull_ucs2(NULL, dest, src, sizeof(fstring), -1, STR_TERMINATE);
-}
-
/**
* Copy a string from a UCS2 src to a unix char * destination, allocating a buffer using talloc
*
return src_len;
}
-ssize_t pull_utf8_pstring(char *dest, const void *src)
-{
- return pull_utf8(dest, src, sizeof(pstring), -1, STR_TERMINATE);
-}
-
-ssize_t pull_utf8_fstring(char *dest, const void *src)
-{
- return pull_utf8(dest, src, sizeof(fstring), -1, STR_TERMINATE);
-}
-
/**
* Copy a string from a UTF-8 src to a unix char * destination, allocating a buffer using talloc
*