Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. int ckk; // position of "|"
  2. ck_pw = fopen(fpp_id, "r"); //open ID txt file to read including text
  3. for (int j = 0;; j++) { // count where is "|"
  4. char buf; // buffer
  5. buf = ''; //reset buf
  6. fread(buf, j, 1, ck_pw);
  7. if (buf == '|') { //find "|"
  8. ckk = j + 1;
  9. break;
  10. }
  11. }
  12. fseek(ck_pw, ckk, SEEK_CUR); //move cursor to "|"
  13. for (int k = 0;; k++) { //read text before space(NULL)
  14. fread(pw_ck, k, 1, ck_pw);
  15. if (pw_ck[k] == NULL) {
  16. break;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement