rtcsample.h

来自「基于RTC库的网络通信系统」· C头文件 代码 · 共 37 行

H
37
字号
/* 
 * Copyright (c) Microsoft Corporation.  All rights reserved.
 *
 * Demonstration of the use of the Run-Time Error Checking (RTC) API without 
 * using the C Run-Time Library (CRT).
 *
 */


#ifndef _rtcsample_h
#define _rtcsample_h

#include <rtcapi.h>
#include <windows.h>

#ifdef NOCRT
#include <strsafe.h>
#endif

extern int GetVal(void);
extern void doSomething(short val);
extern void LoseInfoInIntToShortCast(void);
extern void thrashVar(int *i);
extern void TrashStackVariable(void);
extern void UseUninitializedVariable(void);
extern void DoInitialization(void);
extern void DoTermination(void);

#ifdef __MSVC_RUNTIME_CHECKS
#ifdef NOCRT
extern wchar_t *IntToString(int i);
#endif
extern int Catch_RTC_Failure(int errType, const wchar_t *file, int line, const wchar_t *module, const wchar_t *format, ...);
#endif

#endif // _rtcsample_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?