#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <dirent.h> /* Allows to read directories. */
#include <string.h>

#define SEP 1000

int write_nstring(int fd, char * string, int n){
  /*
    Write the whole content of string "string" into descriptor fd. It
    is supposed to have length "n".
   */
  // TODO
}

int read_nstring(int fd, char * string, int n){
  /*
    Reads "n" bytes into descriptor fd into string "string".
   */
  // TODO
}

int write_int (int fd, int val){
  /*
    Writes integer "val" into descriptor "fd".
   */
  // TODO
}
int read_int (int fd){
  /*
    Reads a (signed) integer from descriptor "fd".
   */
  // TODO
  
}
int main (int arc, char * argv [])
{

  // TODO
  
}        
