C-Shell
A simple shell written in C.
Loading...
Searching...
No Matches
search.c File Reference
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "../internal_commands.h"

Functions

bool find_key_recursively (char *path, char *key)
 
int search (int nargs, char **args)
 Search for a given file or folder under the current directory recursively.
 

Function Documentation

◆ find_key_recursively()

bool find_key_recursively ( char * path,
char * key )

◆ search()

int search ( int nargs,
char ** args )

Search for a given file or folder under the current directory recursively.

Prints True or False to stdout depending on whether the file or folder exists.