MCPcopy Create free account
hub / github.com/apache/trafficserver / skip

Function skip

src/traffic_server/traffic_server.cc:798–812  ·  view source on GitHub ↗

Parse the given string and skip the first word. * * Words are assumed to be separated by spaces or tabs. * * @param[in] cmd The string whose first word will be skipped. * * @return The pointer in the string cmd to the second word in the string, or * nullptr if there is no second word. */

Source from the content-addressed store, hash-verified

796 * nullptr if there is no second word.
797 */
798char *
799skip(char *cmd)
800{
801 // Skip initial white space.
802 cmd += strspn(cmd, " \t");
803 // Point to the beginning of the next white space.
804 cmd = strpbrk(cmd, " \t");
805 if (!cmd) {
806 return cmd;
807 }
808 // Skip the second white space so that cmd now points to the beginning of the
809 // second word.
810 cmd += strspn(cmd, " \t");
811 return cmd;
812}
813
814// Handler for things that need to wait until the cache is initialized.
815void

Callers 2

verify_plugin_helperFunction · 0.85
cmd_helpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected