path: root/compat/strtok_r.c
AgeCommit message (Collapse)Author
2010-08-15compat: add strtok_r()Jonathan Nieder
Windows does not have strtok_r (and while it does have an identical strtok_s, but it is not obvious how to use it). Grab an implementation from glibc. The svn-fe tool uses strtok_r to parse paths. Acked-by: Johannes Sixt <> Helped-by: Jakub Narebski <> Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>