Skip to Content
우아한 C언어 코딩 패턴
book

우아한 C언어 코딩 패턴

by Christoper Preschem, 정기훈(Jung Ki Hun)
April 2024
Beginner to intermediate
364 pages
7h 2m
Korean
Insight
Content preview from 우아한 C언어 코딩 패턴
Fluent
100
󻱴󽴔󽴔󺼣󺽷󺹻󽴔󺇏󺹻
 󼨯󺟈󻪟󽴔󻞳󼟷󼨧󺽃󽴔󻀃󻕻󻰧󽴔󻮟󼌨󻰓󽴔󻳐󻭸󼨧󺆯󽴔󼧓󺴫󺋇󺱷󻰓󽴔󻷠󺞷󻞫󼕷󺞳󻱃󺲻󼨫󽴔󻵔󺸧󻰧󽴔󻨯󼧛󺹻
󼏏󻱃󻘧󻪟󻗫󽴔󻫳󺸧󺹋󽴔󻳐󻳗󼨧󺅛󽴔󼅧󺹻󼨯󽴔󻃸󻅤󻱃󽴔󻪕󺞳󺽃󽴔󼧓󺴫󺋇󺱷󻰓󽴔󻃣󺴫󽴔󻷠󺞷󻞫󼕳󺝣󽴔󺅒󻱃󽴔󻬂
󺆯󽴔󻳐󻳗󼨫󽴔󻗯󼖬󻱃󺞳
할당 래퍼를 사용하면 단일 지점에서 할당 관련 오류를 처리할 수 있는 이점이
있다. 코드의 각 할당 지점에서 포인터 점검 코드를 몇 줄씩 더 작성하지 않아
도 된다. 또한 메모리 해제를 위한 래퍼도 있다. 예를 들어, 현재 할당된 메모
리를 추적하기로 결정했다면 나중에 이 래퍼가 유용할 것이다.
할당이 끝난 후 이제 해당 포인터가 유효한지 확인한다. 이후에는 포인터의
유효성을 확인하지 않아도 되며, 함수 경계를 넘어 전달 받은 포인터도 유효하
다고 신뢰할 수 있다. 이 방식은 프로그래밍 오류가 일어나지 않는 한 괜찮지
만, 실수로 유효하지 않은 포인터에 접근을 시도한다면 디버그하기 어려운 상
황으로 이어질 수 있다. 안전 유지와 코드 개선을 위해 포인터 검사를 사용하
기로 결정한다.
󼢻󻱇󼗿󽴔󺅏󻕻
󼎷󼘜󻝳󼞇
여러분의 프로그램은 여러 곳에서 메모리를 할당/해제하고 있으며, 포인터를
사용해서 메모리나 다른 리소스에 접근하는 곳도 많다.
󻀇󻳫
󻯯󼭷󼨧󻺏󽴔󻨙󻰏󽴔󼢻󻱇󼗿󻪟󽴔󻳠󺋋󼨧󺅛󽴔󺺛󺦫󺝣󽴔󼧓󺴫󺋇󺱧󻃜󽴔󻫳󺸧󺝣󽴔󼚄󻳫󼨯󽴔󻛧󽴔󻪕󺝣󽴔󼧓󺴫󺋇󺱷
󺢨󻱠󻰓󽴔󻯯󻃫󼨧󺼿󺧣󻅓󺋇󼨧󺋿󺢓󽴔 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AI를 위한 필수 수학

AI를 위한 필수 수학

할라 넬슨
파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀

Publisher Resources

ISBN: 9788966264742