@@ -2328,7 +2328,7 @@ uint32_t setCustomTextButtonControls(char *textOut, uint32_t textSize, bool appl
23282328 tempBuffer[tempIndex] = CustomText.CharsToChooseFrom [MenuVar.SecondaryMenuOption ];
23292329
23302330 // If not at the end of the buffer, increment the index
2331- // Subtract 2 from textSize to account for index starting at 0 and null terminator
2331+ // Subtract 2 from textSize to account for index starting at 0 and NULL terminator
23322332 if (tempIndex < (textSize - 2 ))
23332333 {
23342334 CustomText.CurrentIndex = tempIndex + 1 ;
@@ -2343,11 +2343,11 @@ uint32_t setCustomTextButtonControls(char *textOut, uint32_t textSize, bool appl
23432343 {
23442344 // Move backward one character while clearing a specific char depending on circumstances
23452345 // If at the end of the buffer, don't decrement the index if tempBuffer[tempIndex] is not 0
2346- // Subtract 2 from textSize to account for index starting at 0 and null terminator
2346+ // Subtract 2 from textSize to account for index starting at 0 and NULL terminator
23472347 if (tempIndex < (textSize - 2 ))
23482348 {
23492349 // Not at the end of the buffer
2350- // If the char at the current index is not 0, then write a space instead of null
2350+ // If the char at the current index is not 0, then write a space instead of NULL
23512351 if (tempBuffer[tempIndex--] != ' \0 ' )
23522352 {
23532353 tempBuffer[tempIndex] = ' ' ;
@@ -2410,10 +2410,10 @@ uint32_t setCustomTextButtonControls(char *textOut, uint32_t textSize, bool appl
24102410 {
24112411 // Move forward one character
24122412 // Only move forward if not at the end of the buffer
2413- // Subtract 2 from textSize to account for index starting at 0 and null terminator
2413+ // Subtract 2 from textSize to account for index starting at 0 and NULL terminator
24142414 if (tempIndex < (textSize - 2 ))
24152415 {
2416- // If the current char is null , then set it to a space to allow more chars afterward
2416+ // If the current char is NULL , then set it to a space to allow more chars afterward
24172417 if (tempBuffer[tempIndex] == ' \0 ' )
24182418 {
24192419 tempBuffer[tempIndex] = ' ' ;
@@ -2443,7 +2443,7 @@ uint32_t setCustomTextButtonControls(char *textOut, uint32_t textSize, bool appl
24432443 return CUSTOM_TEXT_CANCEL;
24442444 }
24452445
2446- // Subtract 1 from textSize to account for null terminator
2446+ // Subtract 1 from textSize to account for NULL terminator
24472447 strncpy (textOut, tempBuffer, textSize - 1 );
24482448
24492449 if (applyNullTerminator)
@@ -5303,7 +5303,7 @@ int32_t convertDoubleToString(char *strOut, int32_t totalLength, int32_t decimal
53035303 }
53045304
53055305 // Get the value as a string
5306- // The string is assumed to have a size of at least 64 bytes including the null terminator
5306+ // The string is assumed to have a size of at least 64 bytes including the NULL terminator
53075307 // If the value is positive, then add a plus sign to the start of the string
53085308 char *ValueStringPtr = strOut;
53095309 bool ValueIsPositive;
0 commit comments