You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stdlib.h 721B

3 vuotta sitten
123456789101112131415161718192021222324252627282930
  1. #ifndef _SSP_STDLIB_H_
  2. #define _SSP_STDLIB_H_
  3. #include <ssp/ssp.h>
  4. #if __SSP_FORTIFY_LEVEL > 0
  5. __BEGIN_DECLS
  6. __ssp_decl(size_t, mbstowcs, (wchar_t *__buf, const char *__src, size_t __n))
  7. {
  8. if (__buf != NULL)
  9. __ssp_check(__buf, __n * sizeof(wchar_t), __ssp_bos);
  10. return __ssp_real_mbstowcs (__buf, __src, __n);
  11. }
  12. __ssp_redirect_raw(size_t, wcstombs, \
  13. (char *__buf, const wchar_t *__src, size_t __len), \
  14. (__buf, __src, __len), __buf != NULL, __ssp_bos);
  15. __ssp_decl(int, wctomb, (char *__buf, wchar_t __wc))
  16. {
  17. if (__buf != NULL)
  18. __ssp_check(__buf, MB_CUR_MAX, __ssp_bos);
  19. return __ssp_real_wctomb (__buf, __wc);
  20. }
  21. __END_DECLS
  22. #endif /* __SSP_FORTIFY_LEVEL > 0 */
  23. #endif /* _SSP_STDLIB_H_ */