* @brief Rotate a character array to the left by one time * * @param str the string to rotate * @return void */
| 1533 | * @return void |
| 1534 | */ |
| 1535 | void |
| 1536 | RotateLeftStringOnce(char * str) |
| 1537 | { |
| 1538 | INT Length = (INT)strlen(str); |
| 1539 | CHAR Temp = str[0]; |
| 1540 | for (int i = 0; i < (Length - 1); i++) |
| 1541 | { |
| 1542 | str[i] = str[i + 1]; |
| 1543 | } |
| 1544 | str[Length - 1] = Temp; |
| 1545 | } |