Questions tagged [reverse]

The tag has no usage guidance.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

pset4 reverse, check50 says file is not reversing as specified, even though the output file has a reversed version and seems fine

#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wav.h" int check_format(WAVHEADER header); int get_block_size(WAVHEADER ...
Bijal Shrestha's user avatar
0 votes
0 answers
43 views

reverse isn't properly reversing the file

The audio file that is generated not reversing the audio correctly. Here is the code: #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "wav.h" int ...
Splendid Digital Solutions's user avatar
0 votes
0 answers
13 views

reverse, todo 8, cs50, please help me identify my mistake

fseek(inptr, HEADER_SIZE, SEEK_END); int audiolength = ftell(inptr); int buffer; int j = 0; for (int i = 0; i < audiolength; i++) { fseek(inptr, j , SEEK_END); fread(&buffer, block_size, 1, ...
Trex Vanga's user avatar