Search for a char inside a string.
| 104 | |
| 105 | // Search for a char inside a string. |
| 106 | PCHAR shellcode::str_chr(PSTR str, CHAR chr) |
| 107 | { |
| 108 | // Search for it. |
| 109 | do { |
| 110 | if (*str == chr) { return str; }; |
| 111 | } while (*str++); |
| 112 | return (0); |
| 113 | }; |
| 114 | |
| 115 | // Convert ansi to wide chars. |
| 116 | VOID shellcode::ansi_to_wide(PCHAR str, PWCHAR out, size_t size) |
nothing calls this directly
no outgoing calls
no test coverage detected