허당 레몬도리
memset() or value initialization to zero out a struct?
가. 언어유형/C or C++ 2021. 11. 8. 11:58

https://stackoverflow.com/questions/1998752/memset-or-value-initialization-to-zero-out-a-struct memset() or value initialization to zero out a struct? In Win32 API programming it's typical to use C structs with multiple fields. Usually only a couple of them have meaningful values and all others have to be zeroed out. This can be achieved in eithe... stackoverflow.com https://www.py4u.net/discuss..

Minidump TYPE enum 값 설명
가. 언어유형/C or C++ 2019. 12. 19. 11:32

출처 : http://www.debuginfo.com/articles/effminidumps.html#minidumptypesIntroductionIn the last couple of years, crash dumps became an important part of our debugging activities. The possibility to create a snapshot of the application state at the exact moment of failure and analyze it with a conventional debugger running on the developer’s machine is invaluable when our software fails on the cust..

#include <>와 ""의 차이
가. 언어유형/C or C++ 2019. 7. 11. 11:21

출처 : https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants:사용자와 시스템 헤더 파일은 모두 사전 처리 지침 '#include'를 사용하여 포함된다. 두 가지 변형이 있다.#include This variant is used for system header files. It searches for a file named file in a standard list of system directories. You can prepend directories to ..

error : undefined reference to 'pthread_create'
가. 언어유형/C or C++ 2014. 7. 23. 18:06

c multi threading으로 채팅 서버 클라이언트 구현중 컴파일 에러가 발생 물론 소스는 긁어다 붙이기 ㅎㅎ server는 Ubuntu Server 14.04 LTS gcc -o server server.c 를 gcc -o server server.c -lpthread 로 컴파일 시 문제 없음.

clrscr() Visual Studio
가. 언어유형/C or C++ 2010. 1. 25. 11:12

친구가 clrscr()이 안먹는다고 conio.h이 참조 안되는것 같다구 해서 찾아본 결과 비주얼스튜디오에선 지원하지 않고 자동으로 clrscr()기능을 해주기 때문에 사용할 필요도 없다고 한다

[Tip]fopen 함수가 Multi Thread 에서 안전한가? ( Is it safe to use fopen(CRT) function in multi thread? )
가. 언어유형/C or C++ 2010. 1. 5. 14:05

참고로 이런 것도 있더군요. 개인적으로 fwrite에 락을 걸지 않는 버전이 있다는 것은 처음 알았습니다. fwrite http://msdn.microsoft.com/ja-jp/library/h9t88zwz%28VS.80%29.aspx 파일 쓰기를 할 때는 내부적으로 lock을 건다고 합니다. 그래서 lock을 걸지 않으려면 다른 이름의 fwrite(_fwrite_nolock)를 사용해야 한다고 합니다. fclose http://msdn.microsoft.com/ja-jp/library/fxfsw25t%28VS.80%29.aspx fprintf http://msdn.microsoft.com/ja-jp/library/xkh07fe2%28VS.80%29.aspx C 런타임 함수와 Win32 API 함수 ht..