Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* A record defining a retail product */
- typedef struct
- {
- char upc[13]; /* 11-character UPC plus check digit */
- char name[51]; /* product name */
- char price[10]; /* price */
- } product;
- /*
- * Searches for the given UPC in a list of products.
- * Returns the product with the given UPC.
- * If the UPC does not exist in the list, an empty product
- * is returned: {"0","",""}
- */
- product find_product(const char upc[]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement