Changeset 1576:76218233e446 in roaraudio
- Timestamp:
- 04/13/09 02:17:06 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroarsndio/para.c
r1571 r1576 55 55 56 56 int sio_setpar (struct sio_hdl * hdl, struct sio_par * par) { 57 if ( hdl == NULL )57 if ( hdl == NULL || par == NULL ) 58 58 return 0; 59 59 … … 108 108 return 0; 109 109 110 memcpy(&(hdl->para), par, sizeof(struct sio_par)); 111 110 112 return 1; 111 113 } 112 114 113 115 int sio_getpar (struct sio_hdl * hdl, struct sio_par * par) { 114 return 0; 116 if ( hdl == NULL || par == NULL ) 117 return 0; 118 119 memcpy(par, &(hdl->para), sizeof(struct sio_par)); 120 121 return 1; 115 122 } 116 123
Note: See TracChangeset
for help on using the changeset viewer.