Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- ubuntu
- 멀티프로세싱
- fprintf
- usb2.0
- 디스크 축소
- layouts
- interrupt context
- 프레임버퍼
- context switch
- DMA
- 문자형 디바이스 파일
- 디스크립터
- context
- jenkins
- Shared Folder
- sscanf
- pagefile.sys
- memcmp
- sprintf
- gparted
- interrupt handler
- makefile
- 환경 변수
- 젠킨스
- 속도저하
- HDR
- intents
- activities
- 소캣
- fscanf
Archives
- Today
- Total
do{학습}while
c) strcat() 본문
기능 요약
두 문자열을 합치는 함수
헤더파일
#include <string.h> // C++ 에서는 <cstring>
원형
char* strcat(char* destination, const char* source);
반환값
destination + source 두 문자열을 합친 문자열을 반환
주의 사항
예시 코드
#include <stdio.h>
#include <string.h>
int main() {
char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
puts(str);
return 0;
}'C & C++ > c언어 표준함수' 카테고리의 다른 글
| c) calloc() (0) | 2024.05.28 |
|---|---|
| c) realloc() (0) | 2024.05.28 |
| c) strstr() (0) | 2024.05.28 |
| c) getchar() (0) | 2024.05.28 |
| c) puts() (0) | 2024.05.28 |