Previous PageTable Of Contents../index.htmlIndexNext Page

dx_filewrite( )

Description | Cautions | Example | Errors | See Also

Name:

int dx_filewrite(handle, buffer, count)

Inputs:

int handle

  handle returned from dx_fileopen( )

 

void *buffer

  data to be written

 

unsigned int count

  number of bytes

Returns:

number of bytes if success

 

-1 if failure

Category:

File Management

Top Of PageDescription

The dx_filewrite( ) function writes data from a buffer into a file associated with file handle. The write operation begins at the current position of the file pointer (if any) associated with the given file. If the file was opened for appending, the operation begins at the current end of the file. After the write operation, the file pointer is increased by the number of bytes actually written. See the _write function in the Microsoft Visual C++ Run-Time Library Reference for more information.

Top Of PageCautions

Use dx_filewrite( ) instead of _write to ensure the compatibility of applications with the libraries across various versions of Visual C++.

Top Of PageExample

Top Of PageErrors

If this function returns -1 to indicate failure, a system error has occurred; use dx_fileerrno( ) to obtain the system error value. Refer to the dx_fileerrno( ) function for a list of the possible system error values.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Dialogic Corporation
All rights reserved
This page generated February, 2002