MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpGetLength

Function httpGetLength

cups/http.c:1009–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007 */
1008
1009int /* O - Content length */
1010httpGetLength(http_t *http) /* I - HTTP connection */
1011{
1012 /*
1013 * Get the read content length and return the 32-bit value.
1014 */
1015
1016 if (http)
1017 {
1018 httpGetLength2(http);
1019
1020 return (http->_data_remaining);
1021 }
1022 else
1023 return (-1);
1024}
1025
1026
1027/*

Callers

nothing calls this directly

Calls 1

httpGetLength2Function · 0.85

Tested by

no test coverage detected