Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malloc이 불가능한 경우에 관해 질문드립니다. #42

Open
YueunLee opened this issue Apr 29, 2024 · 1 comment
Open

malloc이 불가능한 경우에 관해 질문드립니다. #42

YueunLee opened this issue Apr 29, 2024 · 1 comment

Comments

@YueunLee
Copy link

안녕하세요.

ds_heap_end 이상으로 heap을 늘릴 수 없어 malloc을 수행할 수 없을 경우도 고려해야 하나요?
만약 그렇다면 단순히 NULL을 반환하면 되는 것인지 궁금합니다.

감사합니다.

@kwonsw055
Copy link
Collaborator

malloc에서 블록을 가져오는데 실패하는 경우 NULL을 반환하면 됩니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants