들어가기 앞서...

1. 팁 및 Tester


1) 구현 순서 가이드

  1. lstnewlstdelonelstclearlstlastlstadd_backlstmap
  2. memsetbzerocalloc
  3. strlcpysubstrstrjoinsplit
  4. memcmpstrnstr
  5. strchrstrtrim

2) **const char *** vs **char const *** vs char * const (by 🐷)

[씹어먹는 C 언어 리뷰] 포인터에 대하여

int main(void)
{
    // s1, s2 equivalent -> cannot change value, afford to change address
    // s3 -> afford to change value, cannot change address
    const char *s1 = "123";
    char const *s2 = "456";
    char *const s3 = "789";

    // upper one error
    // *s1 = '0';
    // ++s1;

    // upper one error
    // *s2 = '0';
    // ++s2;

    // lower one error
    // *s3 = '0';
    // ++s3;

    return (0);
}

3) dest vs dst

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/97defb30-0f42-431a-8430-062ae1a0ef65/1.png