Guest User

Untitled

a guest
Feb 20th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. unsigned int n = 667;
  2. int* source = (int*)malloc(n);
  3. //filling source
  4. unsigned int k = (n + 7) / 8;
  5. uint8_t* compressed = (uint8_t*)malloc(k);
  6.  
  7. for (unsigned int i = 0; i < k; ++k)
  8. {
  9.     //???
  10. }
  11.  
  12. //??? reading last "non-full" byte
  13.  
  14. //do something
  15.  
  16. free(compressed);
  17. free(source);
Advertisement
Add Comment
Please, Sign In to add comment