Skip to content

Instantly share code, notes, and snippets.

View iziang's full-sized avatar

Ziang Guo iziang

View GitHub Profile
@iziang
iziang / ls.c
Last active January 3, 2016 00:39
指针一定要初始化,给其分配指向的内存地址!!!!!
#include <stdio.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
if (argc != 2) {
#include <stdio.h>
typedef enum {
ST_RADIO,
ST_CD
} STATES;
typedef enum {
EVT_MODE,
EVT_NEXT