|
I am finding very little information online about accessing the HFS on the 400. Can someone provide a little help on what I am doing wrong: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <qhfopnsf.h> #include <qhfclosf.h> typedef struct error_code_struct { int bytes_provided; int bytes_available; char exception_id[7]; char reserved_field; char exception_data[256]; } error_code_struct; char path_name[30]; int path_length; char open_info[10]; char file_handle[16]; char attrib_info; int attrib_length = 0; char action; error_code_struct error_code; int main ( int argc, char *argv[] ) { strcpy(path_name,"/QDLS/HFSFLR/SAMPLE.HFS"); path_length = strlen( path_name ); strcpy( open_info, "210 120 " ); printf("OPEN STREAM FILE:\n "); QHFOPNSF( &file_handle, path_name, path_length, open_info, &attrib_info, attrib_length, &action, &error_code ); if( error_code.bytes_available > 0 ) { printf("FAIL -- OPEN STREAM FILE:\n "); exit( 1 ); } printf("CLOSE STREAM FILE:\n "); QHFCLOSF( &file_handle, &error_code ); if( error_code.bytes_available > 0 ) { printf("FAIL -- CLOSE STREAM FILE:\n "); exit( 1 ); } } -Thanks Steve More
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.