char *user_getStr ( char *print )
{
if ( print != "0" )
printf ( print );
char buffer[char_buffer_size];
if ( fgets ( buffer, char_buffer_size, stdin ) != NULL )
{
if ( buffer == "\n" )
return NULL;
char *str = charEndStr ( buffer );
return str;
}
else
{
dirent_set_errno ( EIO );
return NULL;
}
}
if ( ( file_name = user_getStr ( "\nНазвание файла: " ) ) == NULL )
{
printf ( "\nНеверное значение." );
return;
}