Open ghost opened 7 years ago
Apparently in C, the emojis have a length of 4.
#include <stdio.h>
#include <string.h>
// Outputs: strlen('😀') = 4
int main(void) {
char *emoji = "😀";
printf("strlen('😀') = %i\n", strlen(emoji));
return 0;
}
Emojis get this magnificent effect.
Most emojis have a char code of [much] larger than 255.