Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.62 KB

File metadata and controls

20 lines (17 loc) · 1.62 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: putenv
putenv
12/16/2019
putenv
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-environment-l1-1-0.dll
DLLExport
apiref
putenv
putenv function
1dc49ef3-6b12-484c-8e60-7048bcc999f1

putenv

The Microsoft-implemented POSIX function name putenv is a deprecated alias for the _putenv function. By default, it generates Compiler warning (level 3) C4996. The name is deprecated because it doesn't follow the Standard C rules for implementation-specific names. However, the function is still supported.

We recommend you use _putenv or security-enhanced _putenv_s function instead. Or, you can continue to use this function name, and disable the warning. For more information, see Turn off the warning and POSIX function names.

Important

This API cannot be used in applications that execute in the Windows Runtime. For more information, see CRT functions not supported in Universal Windows Platform apps.