njb_get_tmpdir(3)
NAME
- NJB_Get_TmpDir, NJB_Set_TmpDir - Get and set the temporary
- directory location for file transfers
LIBRARY
libnjb
SYNOPSIS
#include <libnjb.h> extern int njb_error const char *NJB_Get_TmpDir (njb_t *njb) int NJB_Set_TmpDir (njb_t *njb, const char *dir)
DESCRIPTION
- NJB_Set_TmpDir sets the temporary location for file down
- loads made by the NJB_Get_Track(3) and NJB_Get_Datafile(3) func
- tions. NJB_Get_TmpDir returns the current setting.
- The temporary directory is initially set to /tmp when
NJB_Open
RETURN VALUES
- NJB_Set_TmpDir returns 0 on success. If an error oc
- curred, it returns -1 and sets njb_error.
- EO_NOMEM There was not enough memory available to save
- the new directory location.
SEE ALSO
- NJB_Get_Datafile(3), NJB_Get_Track(3), NJB_Open(3)
- March 2001