Added README and LICENSE

This commit is contained in:
2017-07-10 01:55:33 +02:00
parent 54e6168672
commit 1037aef5f5
3 changed files with 91 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
/* A simple inventory tool written in C, by
* Jack-Benny Persson (jack-benny@cyberinfo.se).
* Released under GNU GPLv2.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -152,7 +157,6 @@ void search(struct myData *datap, int numRec)
fgets(searchword, NAMEMAXLENGTH, stdin);
/* Replace the newline character with a null character */
searchword[strcspn(searchword, "\n")] = '\0';
printf("\n");
for (int i = 0; i<numRec; i++)
{