Skip to content

Commit aa0f0af

Browse files
authored
Merge pull request #5363 from Rageking8/add-missing-space-between-links-and-some-cleanups
Add missing space between links and some cleanups
2 parents 1829cfd + d0789e7 commit aa0f0af

File tree

6 files changed

+173
-179
lines changed

6 files changed

+173
-179
lines changed
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
2-
description: "Learn more about: Buffer manipulation"
32
title: "Buffer manipulation"
4-
ms.date: "04/04/2018"
3+
description: "Learn more about: Buffer manipulation"
4+
ms.date: 04/04/2018
55
helpviewer_keywords: ["buffers, manipulation routines", "buffers"]
6-
ms.assetid: 164f4860-ce66-412c-8291-396fbd70f03e
76
---
87
# Buffer manipulation
98

@@ -13,17 +12,17 @@ Use these routines to work with areas of memory on a byte-by-byte basis.
1312

1413
| Routine | Use |
1514
|---|---|
16-
| [`_memccpy`](./reference/memccpy.md) | Copy characters from one buffer to another until given character or given number of characters has been copied |
17-
| [`memchr`, `wmemchr`](./reference/memchr-wmemchr.md) | Return pointer to first occurrence, within specified number of characters, of given character in buffer |
18-
| [`memcmp`, `wmemcmp`](./reference/memcmp-wmemcmp.md) | Compare specified number of characters from two buffers |
19-
| [`memcpy`, `wmemcpy`](./reference/memcpy-wmemcpy.md), [`memcpy_s`, `wmemcpy_s`](./reference/memcpy-s-wmemcpy-s.md) | Copy specified number of characters from one buffer to another |
20-
| [`_memicmp`, `_memicmp_l`](./reference/memicmp-memicmp-l.md) | Compare specified number of characters from two buffers without regard to case |
21-
| [`memmove`, `wmemmove`](./reference/memmove-wmemmove.md),[`memmove_s`, `wmemmove_s`](./reference/memmove-s-wmemmove-s.md) | Copy specified number of characters from one buffer to another |
22-
| [`memset`, `wmemset`](./reference/memset-wmemset.md) | Use given character to initialize specified number of bytes in the buffer |
23-
| [`_swab`](./reference/swab.md) | Swap bytes of data and store them at specified location |
15+
| [`_memccpy`](reference/memccpy.md) | Copy characters from one buffer to another until given character or given number of characters has been copied |
16+
| [`memchr`, `wmemchr`](reference/memchr-wmemchr.md) | Return pointer to first occurrence, within specified number of characters, of given character in buffer |
17+
| [`memcmp`, `wmemcmp`](reference/memcmp-wmemcmp.md) | Compare specified number of characters from two buffers |
18+
| [`memcpy`, `wmemcpy`](reference/memcpy-wmemcpy.md), [`memcpy_s`, `wmemcpy_s`](reference/memcpy-s-wmemcpy-s.md) | Copy specified number of characters from one buffer to another |
19+
| [`_memicmp`, `_memicmp_l`](reference/memicmp-memicmp-l.md) | Compare specified number of characters from two buffers without regard to case |
20+
| [`memmove`, `wmemmove`](reference/memmove-wmemmove.md), [`memmove_s`, `wmemmove_s`](reference/memmove-s-wmemmove-s.md) | Copy specified number of characters from one buffer to another |
21+
| [`memset`, `wmemset`](reference/memset-wmemset.md) | Use given character to initialize specified number of bytes in the buffer |
22+
| [`_swab`](reference/swab.md) | Swap bytes of data and store them at specified location |
2423

2524
When the source and target areas overlap, only `memmove` is guaranteed to copy the full source properly.
2625

2726
## See also
2827

29-
[Universal C runtime routines by category](./run-time-routines-by-category.md)
28+
[Universal C runtime routines by category](run-time-routines-by-category.md)
Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,79 @@
11
---
2-
description: "Learn more about: File Handling"
32
title: "File Handling"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: File Handling"
4+
ms.date: 11/04/2016
55
f1_keywords: ["c.files"]
66
helpviewer_keywords: ["files [C++], handling", "files [C++], opening", "files [C++], manipulating"]
7-
ms.assetid: 48119e2e-e94f-4602-b08b-b72440f731d8
87
---
98
# File handling
109

1110
Use these routines to create, delete, and manipulate files and to set and check file-access permissions.
1211

13-
The C run-time libraries have a 512 limit for the number of files that can be open at any one time. Attempting to open more than the maximum number of file descriptors or file streams causes program failure. Use [`_setmaxstdio`](./reference/setmaxstdio.md) to change this number.
12+
The C run-time libraries have a 512 limit for the number of files that can be open at any one time. Attempting to open more than the maximum number of file descriptors or file streams causes program failure. Use [`_setmaxstdio`](reference/setmaxstdio.md) to change this number.
1413

1514
## File-handling routines (file descriptor)
1615

1716
These routines operate on files designated by a file descriptor.
1817

1918
| Routine | Use |
2019
|---|---|
21-
| [`_chsize`](./reference/chsize.md),[`_chsize_s`](./reference/chsize-s.md) | Change file size |
22-
| [`_filelength`, `_filelengthi64`](./reference/filelength-filelengthi64.md) | Get file length |
23-
| [`_fstat`, `_fstat32`, `_fstat64`, `_fstati64`, `_fstat32i64`, `_fstat64i32`](./reference/fstat-fstat32-fstat64-fstati64-fstat32i64-fstat64i32.md) | Get file-status information on descriptor |
24-
| [`_get_osfhandle`](./reference/get-osfhandle.md) | Return operating-system file handle associated with existing C run-time file descriptor |
25-
| [`_isatty`](./reference/isatty.md) | Check for character device |
26-
| [`_locking`](./reference/locking.md) | Lock areas of file |
27-
| [`_open_osfhandle`](./reference/open-osfhandle.md) | Associate C run-time file descriptor with existing operating-system file handle |
28-
| [`_setmode`](./reference/setmode.md) | Set file-translation mode |
20+
| [`_chsize`](reference/chsize.md), [`_chsize_s`](reference/chsize-s.md) | Change file size |
21+
| [`_filelength`, `_filelengthi64`](reference/filelength-filelengthi64.md) | Get file length |
22+
| [`_fstat`, `_fstat32`, `_fstat64`, `_fstati64`, `_fstat32i64`, `_fstat64i32`](reference/fstat-fstat32-fstat64-fstati64-fstat32i64-fstat64i32.md) | Get file-status information on descriptor |
23+
| [`_get_osfhandle`](reference/get-osfhandle.md) | Return operating-system file handle associated with existing C run-time file descriptor |
24+
| [`_isatty`](reference/isatty.md) | Check for character device |
25+
| [`_locking`](reference/locking.md) | Lock areas of file |
26+
| [`_open_osfhandle`](reference/open-osfhandle.md) | Associate C run-time file descriptor with existing operating-system file handle |
27+
| [`_setmode`](reference/setmode.md) | Set file-translation mode |
2928

3029
## File-Handling Routines (Path or Filename)
3130

3231
These routines operate on files specified by a path or filename.
3332

3433
| Routine | Use |
3534
|---|---|
36-
| [`_access`, `_waccess`](./reference/access-waccess.md), [`_access_s`, `_waccess_s`](./reference/access-s-waccess-s.md) | Check file-permission setting |
37-
| [`_chmod`, `_wchmod`](./reference/chmod-wchmod.md) | Change file-permission setting |
38-
| [`_fullpath`, `_wfullpath`](./reference/fullpath-wfullpath.md) | Expand a relative path to its absolute path name |
39-
| [`_makepath`, `_wmakepath`](./reference/makepath-wmakepath.md), [`_makepath_s`, `_wmakepath_s`](./reference/makepath-s-wmakepath-s.md) | Merge path components into single, full path |
40-
| [`_mktemp`, `_wmktemp`](./reference/mktemp-wmktemp.md), [`_mktemp_s`, `_wmktemp_s`](./reference/mktemp-s-wmktemp-s.md) | Create unique filename |
41-
| [`remove`, `_wremove`](./reference/remove-wremove.md) | Delete file |
42-
| [`rename`, `_wrename`](./reference/rename-wrename.md) | Rename file |
43-
| [`_splitpath`, `_wsplitpath`](./reference/splitpath-wsplitpath.md), [`_splitpath_s`, `_wsplitpath_s`](./reference/splitpath-s-wsplitpath-s.md) | Parse path into components |
44-
| [`_stat`, `_stat64`, `_stati64`, `_wstat`, `_wstat64`, `_wstati64`](./reference/stat-functions.md) | Get file-status information on named file |
45-
| [`_umask`](./reference/umask.md), [`_umask_s`](./reference/umask-s.md) | Set default permission mask for new files created by program |
46-
| [`_unlink`, `_wunlink`](./reference/unlink-wunlink.md) | Delete file |
35+
| [`_access`, `_waccess`](reference/access-waccess.md), [`_access_s`, `_waccess_s`](reference/access-s-waccess-s.md) | Check file-permission setting |
36+
| [`_chmod`, `_wchmod`](reference/chmod-wchmod.md) | Change file-permission setting |
37+
| [`_fullpath`, `_wfullpath`](reference/fullpath-wfullpath.md) | Expand a relative path to its absolute path name |
38+
| [`_makepath`, `_wmakepath`](reference/makepath-wmakepath.md), [`_makepath_s`, `_wmakepath_s`](reference/makepath-s-wmakepath-s.md) | Merge path components into single, full path |
39+
| [`_mktemp`, `_wmktemp`](reference/mktemp-wmktemp.md), [`_mktemp_s`, `_wmktemp_s`](reference/mktemp-s-wmktemp-s.md) | Create unique filename |
40+
| [`remove`, `_wremove`](reference/remove-wremove.md) | Delete file |
41+
| [`rename`, `_wrename`](reference/rename-wrename.md) | Rename file |
42+
| [`_splitpath`, `_wsplitpath`](reference/splitpath-wsplitpath.md), [`_splitpath_s`, `_wsplitpath_s`](reference/splitpath-s-wsplitpath-s.md) | Parse path into components |
43+
| [`_stat`, `_stat64`, `_stati64`, `_wstat`, `_wstat64`, `_wstati64`](reference/stat-functions.md) | Get file-status information on named file |
44+
| [`_umask`](reference/umask.md), [`_umask_s`](reference/umask-s.md) | Set default permission mask for new files created by program |
45+
| [`_unlink`, `_wunlink`](reference/unlink-wunlink.md) | Delete file |
4746

4847
## File-Handling Routines (Open File)
4948

5049
These routines open files.
5150

5251
| Routine | Use |
5352
|---|---|
54-
| [`fopen`, `_wfopen`](./reference/fopen-wfopen.md), [`fopen_s`, `_wfopen_s`](./reference/fopen-s-wfopen-s.md) | Opens a file and returns a pointer to the open file. |
55-
| [`_fsopen`, `_wfsopen`](./reference/fsopen-wfsopen.md) | Open a stream with file sharing and returns a pointer to the open file. |
56-
| [`_open`, `_wopen`](./reference/open-wopen.md) | Opens a file and returns a file descriptor to the opened file. |
57-
| [`_sopen`, `_wsopen`](./reference/sopen-wsopen.md), [`_sopen_s`, `_wsopen_s`](./reference/sopen-s-wsopen-s.md) | Open a file with file sharing and returns a file descriptor to the open file. |
58-
| [`_pipe`](./reference/pipe.md) | Creates a pipe for reading and writing. |
59-
| [`freopen`, `_wfreopen`](./reference/freopen-wfreopen.md), [`freopen_s`, `_wfreopen_s`](./reference/freopen-s-wfreopen-s.md) | Reassign a file pointer. |
53+
| [`fopen`, `_wfopen`](reference/fopen-wfopen.md), [`fopen_s`, `_wfopen_s`](reference/fopen-s-wfopen-s.md) | Opens a file and returns a pointer to the open file. |
54+
| [`_fsopen`, `_wfsopen`](reference/fsopen-wfsopen.md) | Open a stream with file sharing and returns a pointer to the open file. |
55+
| [`_open`, `_wopen`](reference/open-wopen.md) | Opens a file and returns a file descriptor to the opened file. |
56+
| [`_sopen`, `_wsopen`](reference/sopen-wsopen.md), [`_sopen_s`, `_wsopen_s`](reference/sopen-s-wsopen-s.md) | Open a file with file sharing and returns a file descriptor to the open file. |
57+
| [`_pipe`](reference/pipe.md) | Creates a pipe for reading and writing. |
58+
| [`freopen`, `_wfreopen`](reference/freopen-wfreopen.md), [`freopen_s`, `_wfreopen_s`](reference/freopen-s-wfreopen-s.md) | Reassign a file pointer. |
6059

6160
These routines provide a way to change the representation of the file between a `FILE` structure, a file descriptor, and a Win32 file handle.
6261

6362
| Routine | Use |
6463
|---|---|
65-
| [`_fdopen`, `_wfdopen`](./reference/fdopen-wfdopen.md) | Associates a stream with a file that was previously opened for low-level I/O and returns a pointer to the open stream. |
66-
| [`_fileno`](./reference/fileno.md) | Gets the file descriptor associated with a stream. |
67-
| [`_get_osfhandle`](./reference/get-osfhandle.md) | Return operating-system file handle associated with existing C run-time file descriptor |
68-
| [`_open_osfhandle`](./reference/open-osfhandle.md) | Associates C run-time file descriptor with an existing operating-system file handle. |
64+
| [`_fdopen`, `_wfdopen`](reference/fdopen-wfdopen.md) | Associates a stream with a file that was previously opened for low-level I/O and returns a pointer to the open stream. |
65+
| [`_fileno`](reference/fileno.md) | Gets the file descriptor associated with a stream. |
66+
| [`_get_osfhandle`](reference/get-osfhandle.md) | Return operating-system file handle associated with existing C run-time file descriptor |
67+
| [`_open_osfhandle`](reference/open-osfhandle.md) | Associates C run-time file descriptor with an existing operating-system file handle. |
6968

7069
The following Win32 functions also open files and pipes:
7170

7271
- [`CreateFile`](/windows/win32/api/fileapi/nf-fileapi-createfilew)
73-
7472
- [`CreatePipe`](/windows/win32/api/namedpipeapi/nf-namedpipeapi-createpipe)
75-
7673
- [`CreateNamedPipe`](/windows/win32/api/winbase/nf-winbase-createnamedpipea)
7774

7875
## See also
7976

80-
[Universal C runtime routines by category](./run-time-routines-by-category.md)\
81-
[Directory control](./directory-control.md)\
82-
[System calls](./system-calls.md)
77+
[Universal C runtime routines by category](run-time-routines-by-category.md)\
78+
[Directory control](directory-control.md)\
79+
[System calls](system-calls.md)

0 commit comments

Comments
 (0)