To Reduce any confliction as parameters, we use Lock-On as param.
That control should be functions of process head and taile usually with curly-brace '{' and `]`.
*scope
- | - | - | - |
- |
int file_read_lock_on () {
if ( f_file_read_lock_on == 1 ) {
message = csvcopyof( (char*)"is unreadable already." );
return 0;
}
f_file_read_lock_on = 1;
message = csvcopyof( (char*)"is unreadable any." );
return 1;
}
int file_read_lock_off () {
if ( f_file_read_lock_on != 0 ) {
f_file_read_lock_on = 0;
message = csvcopyof( (char*)"is readable any." );
}
return 1;
}
char* get_message () {
return message;
}
|
- | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
*
... is well.
*
- | - | - | - |
- | - | - | |
- | - | - | |
- | - | - | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
- | - | - | - |
*