일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- gcc를 사용한 컴파일 예제
- build:15
- Linux
- OS1
- ar과 make 사용법
- ethereum
- aes_ctr
- c
- c언어로 쉽게 풀어쓴 자료구조
- error
- geth 설치 안됨
- aes-128-ctr
- ros
- 시스템프로그래밍
- build 에러
- studio
- catkin_make
- gcc
- aes decrypt
- ousterstudio
- build:12
- aes-ctr
- aes ctr decrypt
- floyld
- ouster
- geth 설치 에러
- LIDAR
- geth 설치
- aes ctr
- gcc 실행
- Today
- Total
목록c (2)
CODERJH

ar과 make를 사용해서 앞의 포스팅에서 작성했던 mystrcpy()를 라이브러리 파일로 만든 후 컴파일 하는 과정의 코드와 간단한 설명을 작성해 두었다. 또한 make명령어를 사용해서 지수연산하는 코드와 컴파일 과정을 작성해 두었다. 1. mystrcpy.c 를 libmine.a로 라이브러리를 만든 후 컴파일 #include void mystrcpy(char *dst, char *src); int main() { char str[80]; mystrcpy(str,"Hello"); puts(str); } -> Hello.c #include void mystrcpy(char *dst, char *src) { int i=0; while(src[i]!='\0')// 마지막 부분이 되면 종료 { dst[i]=s..

오늘은 리눅스 환경에서 gcc를 활용해서 코딩하는 방법을 연습해 보고 간단한 strcpy() 함수를 mystrcpy()로 만들어 보았다. 실행 코드 및 결과화면은 아래에 있다. 1. 실행코드 #include void mystrcpy(char *dst, char *src); int main() { char str[80]; mystrcpy(str,"Hello"); puts(str); } -> Mystrcpy.c #include void mystrcpy(char *dst, char *src) { int i=0; while(src[i]!='\0')// 마지막 부분이 되면 종료 { dst[i]=src[i]; // src의 처음부터 dst의 마지막 부분에 삽입 i++; // 위치 변경 } } -> Hello.c 2..