IT/programming42 [C/C++] C99 구조체 초기화 하는 방법 C99 구조체 초기화 하기 일반적으로 사용하는 구조체 초기화 방법은 아래와 같다. struct address { int street_no; char *street_name; char *city; char *prov; char *postal_code; }; struct address temp_address = { 0, "st. green", "Hamilton", "Ontario", "123-456" }; 위의 방법은 C89 의 방법이고 C99에서는 아래와 같이 특정변수만 제한적으로 초기화가 가능하다. struct address { int street_no; char *street_name; char *city; char *prov; char *postal_code; }; struct address temp.. 2014. 12. 19. Base64 With OpenSSL C API OpenSSL has the ability to perform Base64 encodings and decodings. There seems to be many queries for working examples on how to use this functionality. Unfortunately, theexample on the OpenSSL site is quite obtuse, and every other example I have come accross does not work. So here is some working code. Enjoy! Get The Code You can download this entire gist here. It consists of the following file.. 2014. 7. 14. 이전 1 ··· 3 4 5 6 다음