⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dir.c

📁 speech signal process tools
💻 C
字号:
/**********************************************************************//*                                                                    *//*             FILENAME:  dir.c                                       *//*             BY:  Jonathan G. Fiscus                                *//*                  NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY    *//*                  SPEECH RECOGNITION GROUP                          *//*                                                                    *//*           DESC:  This file contains general routines used          *//*                  throughout the scoring package                    *//*                                                                    *//**********************************************************************/#include <util/utillib.h>#if defined(NARCH_NEXT)#include <sys/dir.h>#else#include <dirent.h>#endif#include <stdio.h>/***************************************************************//*  given a directory, make sure it exists and you have write  *//*  access                                                     *//***************************************************************/int dir_exists(char *dir){    DIR *dirp;    if ((dirp = opendir(dir)) == NULL){        return(0);    }    closedir(dirp);    return(1);}/*********************************************************************//*   return true if the file with the name 'fname' can be opened     *//*   for reading                                                     *//*********************************************************************/int file_readable(char *fname){    FILE *fp;    if ((*(fname) == NULL_CHAR) || ((fp=fopen(fname,"r")) == NULL))        return(0);    fclose(fp);    return(1);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -