
ret = fca_setparam( 1, &r_para ) ;
if ( ret ) {
printf( "error in fca_setparam¥n" ) ;
return ( ret ) ;
}
printf( "old name?(max 17 )¥n" ) ;
ret = scanf( "%s", &oldname ) ;
printf( "new name?(max 17 )¥n" ) ;
ret = scanf( "%s", &newname ) ;
ret = fca_rename( oldname, newname ) ;
if ( ret ) {
printf( "error in fca_rename¥n" ) ;
fca_bye( 1 ) ;
return ( ret ) ;
}
ret = fca_status( steetas ) ;
if ( ret ) {
printf( "error in fca_status¥n" ) ;
fca_bye( 1 ) ;
return ( ret ) ;
}
c = steetas[ 1 ] ;
c &= 0x00ff ;
printf( "status is %02X", c ) ;
c = steetas[ 0 ] ;
c &= 0x00ff ;
printf( "%02X¥n", c ) ;
ret = fca_bye( 1 ) ;
if ( ret ) {
printf( "error in fca_bye¥n" ) ;
}
return ( ret ) ;
}