#include <string.h>
#include <stdio.h>
#pragma GCC poison strcpy
int main()
{
char t[5];
strcpy(t, "A");
printf("Hello World\n");
}
cristi:~ diciu$ gcc strcpy.c
strcpy.c:10:2: error: attempt to use poisoned "strcpy"
cristi:~ diciu$
please tell her to roll back the universe
#include <string.h>
#include <stdio.h>
#pragma GCC poison strcpy
int main()
{
char t[5];
strcpy(t, "A");
printf("Hello World\n");
}
cristi:~ diciu$ gcc strcpy.c
strcpy.c:10:2: error: attempt to use poisoned "strcpy"
cristi:~ diciu$
NSString * stringDia = [NSString stringWithString:@"Mămăligă"];
NSString * string = [NSString stringWithString:@"Mamaliga"];
int res = [stringDia compare:string options:NSDiacriticInsensitiveSearch];
NSLog(@"The strings are %@equal", res == NSOrderedSame ? @"" : @"not ");
CFStringFold
Discussion
Character foldings are operations that convert any of a set of characters sharing similar semantics into a single representative from that set.
You can use this function to preprocess strings that are to be compared, searched, or indexed.[..]