MCPcopy Create free account
hub / github.com/Kitware/CMake / kwsysProcessCleanErrorMessage

Function kwsysProcessCleanErrorMessage

Source/kwsys/ProcessWin32.c:1938–1953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1936}
1937
1938void kwsysProcessCleanErrorMessage(kwsysProcess* cp)
1939{
1940 /* Remove trailing period and newline, if any. */
1941 size_t length = strlen(cp->ErrorMessage);
1942 if (cp->ErrorMessage[length - 1] == '\n') {
1943 cp->ErrorMessage[length - 1] = 0;
1944 --length;
1945 if (length > 0 && cp->ErrorMessage[length - 1] == '\r') {
1946 cp->ErrorMessage[length - 1] = 0;
1947 --length;
1948 }
1949 }
1950 if (length > 0 && cp->ErrorMessage[length - 1] == '.') {
1951 cp->ErrorMessage[length - 1] = 0;
1952 }
1953}
1954
1955/* Get the time at which either the process or user timeout will
1956 expire. Returns 1 if the user timeout is first, and 0 otherwise. */

Callers 1

kwsysProcessCleanupFunction · 0.85

Calls 1

strlenFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…