- use size_t and return 0 on fail
[m6w6/ext-http] / phpstr / phpstr.h
index bd749d6f6ae50bae0d011f86ff0d3d909f665c12..c53d311f2b532dabb0dcaed462d370f7ee1e1a5d 100644 (file)
@@ -98,7 +98,7 @@ PHPSTR_API phpstr *phpstr_right(const phpstr *buf, size_t length);
 PHPSTR_API phpstr *phpstr_sub(const phpstr *buf, size_t offset, size_t len);
 
 /* remove a substring */
-PHPSTR_API ssize_t phpstr_cut(phpstr *buf, size_t offset, size_t length);
+PHPSTR_API size_t phpstr_cut(phpstr *buf, size_t offset, size_t length);
 
 /* get a complete phpstr duplicate */
 PHPSTR_API phpstr *phpstr_dup(const phpstr *buf);