Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.34 KB

posix-dup-dup2.md

File metadata and controls

17 lines (15 loc) · 1.34 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: dup, dup2
dup, dup2
12/16/2019
dup2
dup
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
DLLExport
apiref
dup
dup2
dup function
dup2 function
c7572170-47ff-4e0d-b9c3-10f0ab0ba40a

dup, dup2

The Microsoft-implemented POSIX function names dup and dup2 are deprecated aliases for the _dup and _dup2 functions. By default, they generate Compiler warning (level 3) C4996. The names are deprecated because they don't follow the Standard C rules for implementation-specific names. However, the functions are still supported.

We recommend you use _dup and _dup2 instead. Or, you can continue to use these function names, and disable the warning. For more information, see Turn off the warning and POSIX function names.