summaryrefslogtreecommitdiffstats
path: root/2023-2/E1/mitsuo/p2/fun.hpp
blob: 70f4b3f7e8b37eeba095fffb720727621df3fadf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef FUN_HPP
#define FUN_HPP

#include <iostream>

#define MAX         1000
#define MAXLEN      100
#define INCREMENTO  5

void cargarProductos(void *&prod, const char *nombArch);
void aumentaEspacios(void**&productos, int &nd, int &cap);
char *leeCad(std::istream &arch, char delim);
void guardaProd(std::istream &arch, void *&prod, char *cod);
void *creaRegProd(std::istream &arch, char *cod);
int cmpProducto(const void *a, const void *b);
void pruebaDeCargaDeProductos(void *prod);
void imprimeLinea(std::ostream &arch,char c);
void imprimeProducto(std::ostream &arch,void *prod);
void imprimeRegistroProducto(std::ostream &arch,void *prod);

#endif /* FUN_HPP */