Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include "my.h"
  2. void searchsv (int arry[], FILE* myfile1, int* sv)
  3. {
  4. int y;
  5. if ((y = fscanf(myfile1, "%d", &sv)) > 0)
  6. {
  7. printf("The value searched was %d and it was found. \n", *sv);
  8. }
  9. else
  10. printf("The value searched was %d and it was not found\n", *sv);
  11. return;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement