Returns the size of a Null-terminated ASCII string in bytes, including the Null terminator. This function returns the size, in bytes, of the Null-terminated ASCII string specified by String. If String is NULL, then ASSERT(). If PcdMaximumAsciiStringLength is not zero and String contains more than PcdMaximumAsciiStringLength ASCII characters, not including the Null-terminator,
| 1240 | |
| 1241 | **/ |
| 1242 | UINTN |
| 1243 | EFIAPI |
| 1244 | AsciiStrSize ( |
| 1245 | IN CONST CHAR8 *String |
| 1246 | ) |
| 1247 | { |
| 1248 | if (!String) { |
| 1249 | return 0; |
| 1250 | } |
| 1251 | |
| 1252 | return (AsciiStrLen(String) + 1) * sizeof (*String); |
| 1253 | } |
| 1254 | |
| 1255 | /** |
| 1256 | Compares two Null-terminated ASCII strings, and returns the difference |
no test coverage detected