#include <stdio.h> #include <string.h> int main(void) { const char *url = "https://example.com"; if (strncmp(url, "https", 5) == 0) { printf("secure\n"); } return 0; }
compare only the first n bytes