Skip to content

Commit

Permalink
Adding CheckedC type for strdup. (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Machiry authored and dtarditi committed Jun 12, 2019
1 parent e20d8ab commit c4b6c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/string_checked.h
Expand Up @@ -165,6 +165,8 @@ char *strtok(char * restrict s1 : itype(restrict _Nt_array_ptr<char>),
char *strerror(int errnum) : itype(_Nt_array_ptr<char>);
size_t strlen(const char *s : itype(_Nt_array_ptr<const char>));

char *strdup(const char *s : itype(_Nt_array_ptr<const char>)) : itype(_Nt_array_ptr<char>);

#include "_builtin_string_checked.h"

#pragma CHECKED_SCOPE pop
Expand Down

0 comments on commit c4b6c74

Please sign in to comment.