Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.

Commit

Permalink
Change strlen2 to return a size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Meiguro committed Mar 7, 2016
1 parent 369f024 commit 7b3aad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static inline bool is_string(const char *str) {
return str && str[0];
}

static inline int strlen2(const char *str) {
static inline size_t strlen2(const char *str) {
return is_string(str) ? strlen(str) : 0;
}

Expand Down

0 comments on commit 7b3aad5

Please sign in to comment.