abh - HTMLify profile

abh's Profile Picture

abh

509 Files

102923 Views

Latest files of /abh/learning/c/BPPL/Phase-3/file_search

main.c abh/learning/c/BPPL/Phase-3/file_search/main.c
12 Views
0 Comments
#include <stdio.h>
#include "search.h"
#include "ui.h"

void print_stats(int , int, int, char* current_dir);

int main(int argc, char* argv[]) {
char *search_string, *search_dir;
ui.c abh/learning/c/BPPL/Phase-3/file_search/ui.c
5 Views
0 Comments
#include "ui.h"
#include "search.h"
#include <ncurses.h>

void ui(SearchResult sr) {
char **rs=sr.results;
int
curr_h=1, key,
ui.h abh/learning/c/BPPL/Phase-3/file_search/ui.h
6 Views
0 Comments

#ifndef UI_H
#define UI_H

#include "search.h"

void ui(SearchResult);

search.c abh/learning/c/BPPL/Phase-3/file_search/search.c
8 Views
0 Comments
#include <dirent.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include "search.h"

search.h abh/learning/c/BPPL/Phase-3/file_search/search.h
11 Views
0 Comments

#ifndef SEARCH_H
#define SEARCH_H

typedef struct {
char **results;
int result_count;
} SearchResult;