(const char *line) const because you do not want to edit line.  And the function could be static as you probably do want to export it for use outside of this file.

The function body could be

while (*line && isspace(line))  // you may have to cast line to an int ??
        line++;

return line;