목록분류 전체보기 (204)
관심있는 것들 정리
KASUMI encryption 코드를 C로 구현한 것. 이만영 교수님의 Mobile communication System and Security 예제 5.4의 내용을 C로 구현한 것임. gcc에서 컴파일 및 테스트 수행. #include #include #include typedef unsigned long long uint64_t; typedef long long int64_t; typedef unsigned int uint32_t; typedef int int32_t; typedef unsigned short int uint16_t; typedef short int int16_t; typedef unsigned char uint8_t; #define ROL16(x, y) ((((x)(16-(y)))..
gcc 소스코드이름 -o output이름 `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` 예: gcc helloworld.c -o helloworld `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
가장 simple한 hello world 예제 #include int main (int argc, char *argv[]) { GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Hello World"); gtk_widget_show (window); gtk_main (); return 0; }