Skip to content

Instantly share code, notes, and snippets.

View moe91asd's full-sized avatar

moe91asd

  • Lebanon
View GitHub Profile
@moe91asd
moe91asd / jpgtest.c
Created May 8, 2024 15:28
Test if a given file is JPEG or not in C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_BYTES 3
int
main (const int argc, const char *argv[])
{
if (argc != 2) {