![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Add data to the provided data chain
int PtAddData( PtDataHdr_t **ptr, 
               long type,
               long subtype, 
               void *data, 
               long len, 
               PtDataRemoveF_t *remove );
ph
This function adds a piece of data to the provided data chain. The data provided must be in a block of memory created by malloc(). You can retrieve this data by calling PtFindData(), or PtFindNextData().
0 on success, or -1 if an error occurred (e.g. out of memory).
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtFindData(), PtFindNextData(), PtRemoveData(), PtUnlinkData()
![]()  | 
![]()  | 
![]()  | 
![]()  |