Initial commit

This commit is contained in:
2025-10-06 00:14:04 -04:00
commit d98bdabb74
553 changed files with 32764 additions and 0 deletions

29
p3-disas/p1-check.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef __CS261_P1__
#define __CS261_P1__
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "elf.h"
/**
* @brief Load a Mini-ELF header from an open file stream
*
* @param file File stream to use for input
* @param hdr Pointer to region where the Mini-ELF header should be loaded
* @returns True if the header was successfully loaded and verified, false otherwise
*/
bool read_header (FILE *file, elf_hdr_t *hdr);
/**
* @brief Print Mini-ELF header information to standard out
*
* @param hdr Header with info to print
*/
void dump_header (elf_hdr_t *hdr);
#endif