C

    [42Seoul][Libft] 나만의 라이브러리 만들기 - bonus part [C]

    목차 Libft bonus part ft_lstnew ft_lstadd_front ft_lstsize ft_lstlast ft_lstadd_back ft_lstdelone ft_lstclear ft_lstiter ft_lstmap Libft bonus part 보너스 과제에서 사용할 리스트 구조체 입니다. 해당 구조체는 컨텐츠와 다음 구조체를 가리키는 포인터로 구성되어있습니다. 헤더파일에 작성해줍니다. typedef struct s_list { void*content; struct s_list*next; }t_list; ft_lstnew 연결 리스트에서 새로운 노드를 만드는 함수입니다. 새로운 노드를 만들고 그 노드 값에 우리가 매개변수로 넣어준 값을 해당 새로운 노드에 값으로 넣어줍니다. 새롭게 생성하..

    [42Seoul][Libft] 나만의 라이브러리 만들기 [C]

    목차 Libft part 1 - Libc functions isalpha • isdigit • isalnum • isascii • isprint • strlen • memset • bzero • memcpy • memmove • strlcpy • strlcat • toupper • tolower • strchr • strrchr • strncmp • memchr • memcmp • strnstr • atoi • calloc • strdup part 2 - Additional functions ft_substr ft_strjoin ft_strtrim ft_split ft_itoa ft_strmapi ft_striteri ft_putchar_fd ft_putstr_fd ft_putendl_fd ft_putn..

    [TIL] 백준 11721 열 개씩 끊어 출력하기, C언어가 cpu에 작동하기까지 [21-11-06]

    목차 TIL - 백준 11721 - C언어가 cpu에 작동하기까지 TIL 오늘 12시부터 4시까지 코딩 테스트를 봤다. 5번 문제에 대해서는 어느 정도 구현은 했지만, 예외처리를 못했다. 7번은 보고 나서 복잡할 것 같아서, 제대로 문제를 못 봤는데, 아쉽다. 그래도 내가 구현할 수 있는 부분은 모두 구현했다. 도전에 의의를 두고 다시 처음 기초부터 차근차근 공부하자. 4 솔.. 아쉽다. 백준 11721 https://www.acmicpc.net/problem/11721 11721번: 열 개씩 끊어 출력하기 첫째 줄에 단어가 주어진다. 단어는 알파벳 소문자와 대문자로만 이루어져 있으며, 길이는 100을 넘지 않는다. 길이가 0인 단어는 주어지지 않는다. www.acmicpc.net 아주 쉬운 문제였다. ..

    [Linux]리눅스에서 컴파일 후 디버깅 하기

    리눅스에서 컴파일 후 디버깅 하는 방법을 다뤘습니다. https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/ https://u.osu.edu/cstutorials/2018/09/28/how-to-debug-c-program-using-gdb-in-6-simple-steps/ How to Debug C Program using gdb in 6 Simple Steps This Tutorial is taken from here In this article, let us discuss how to debug a c program using gdb debugger in 6 simple steps. Write a sample C program ..