Revision 132b70a2ed6d952e8142981474b41884ff93b780 authored by Jeff King on 28 September 2013, 08:31:11 UTC, committed by Jonathan Nieder on 30 September 2013, 20:04:45 UTC
When we retrieve the content-type of an http response, curl
gives us a pointer to internal storage, which we then copy
into a strbuf. Let's factor out the get-and-copy routine,
which can be used for getting other curl info.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
1 parent 3d1fb76
Raw File
strtoimax.c
#include "../git-compat-util.h"

intmax_t gitstrtoimax (const char *nptr, char **endptr, int base)
{
#if defined(NO_STRTOULL)
	return strtol(nptr, endptr, base);
#else
	return strtoll(nptr, endptr, base);
#endif
}
back to top