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
- 디스크 축소
- usb2.0
- interrupt context
- Shared Folder
- memcmp
- context switch
- gparted
- 환경 변수
- fprintf
- makefile
- jenkins
- interrupt handler
- activities
- 소캣
- layouts
- 디스크립터
- sscanf
- intents
- sprintf
- DMA
- 프레임버퍼
- HDR
- pagefile.sys
- 멀티프로세싱
- fscanf
- 속도저하
- context
- 젠킨스
- ubuntu
- 문자형 디바이스 파일
Archives
- Today
- Total
do{학습}while
c) sscanf() 본문
기능 요약
문자열에 형식 지정자를 읽어온다. 지정한 형식 지정에 맞게 변수에 저장
헤더파일
#include <stdio.h> // C++ 에서는 <cstdio>
원형
int sscanf(const char* str, const char* format, ...);
주의 사항
예시 코드
#include <stdio.h>
int main() {
char str[30] = "1234";
int i;
sscanf(str, "%d", &i);
printf("Number from : '%s' \\n", str);
printf("number : %d \\n", i);
return 0;
}
'C & C++ > c언어 표준함수' 카테고리의 다른 글
| c) fgets() (0) | 2024.05.28 |
|---|---|
| c) memcmp() (0) | 2024.05.27 |
| c) sprintf() (0) | 2024.05.27 |
| c) fscanf() (0) | 2024.05.27 |
| c) fprintf() (0) | 2024.05.27 |