Skip to content

Instantly share code, notes, and snippets.

View pineoc's full-sized avatar
😇

Allen Yunseok Lee pineoc

😇
View GitHub Profile
@pineoc
pineoc / createProcess.c
Last active December 27, 2015 10:49
createProcess
#include<stdio.h>
#include<windows.h>
#include<tchar.h>
#define DIR_LEN BUFSIZ
//BUFSIZ는 운영체제마다 다른 크기를 가지고 있습니다.
//한번 크기를 출력해보시는것도 좋겠네요.
int _tmain(int argc, TCHAR* argv[]){
STARTUPINFO si = {0,}; //구조체 선언, 초기화
PROCESS_INFORMATION pi;
@pineoc
pineoc / project_lee_lee..c
Last active December 31, 2015 11:39
project for embedded system
#include <stdio.h>
#include <stdlib.h> /* for exit */
#include <unistd.h> /* for open/close .. */
#include <fcntl.h> /* for O_RDONLY */
#include <sys/ioctl.h> /* for ioctl */
#include <sys/types.h>
#include <sys/time.h>
#include <string.h>
#include <sys/mman.h> /* for mmap */
#include <linux/fb.h> /* for fb_var_screeninfo, FBIOGET_VSCREENINFO */
#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
//x1<x2, y1<y2
struct Rectangle{
double x1, y1, x2, y2;
@pineoc
pineoc / network2w_helloclient.c
Last active August 29, 2015 14:17
week2 network programming, hello server & client code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
void error_handling(char* msg);
int main(int argc,char* argv[])
/*
pineoc, 2015-03-16
week 3 network programming
iterative echo server & client
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/*
pineoc, 2015-03-16
week 3 network programming
iterative echo server & client
perfect version
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
pineoc, 2015-03-23
week 4 network programming
udp echo server & client + connected
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/*
pineoc, 2015-03-23
week 4 network programming
file server & client
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@pineoc
pineoc / multiproc_client.c
Created March 30, 2015 03:11
multi process server & full duplex echo client
/*
pineoc, 2015-03-30
week 5 network programming
echo multi process server & client
client code
입출력 분할
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
pineoc, 2015-04-06
week 6 network programming
echo multi process server & client
+inet_ntoa function
server code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>