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
- pagefile.sys
- usb2.0
- 속도저하
- jenkins
- sprintf
- 젠킨스
- context switch
- 디스크 축소
- sscanf
- fscanf
- DMA
- 멀티프로세싱
- intents
- 환경 변수
- layouts
- context
- gparted
- 소캣
- makefile
- Shared Folder
- interrupt handler
- HDR
- 디스크립터
- 문자형 디바이스 파일
- activities
- interrupt context
- memcmp
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 |