fork(1) download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <stdint.h>
  4.  
  5. void a(uint8_t **po, size_t t) {
  6. *po = realloc(*po, t);
  7. }
  8.  
  9. int main() {
  10. uint8_t *array = NULL;
  11. a(&array, sizeof(uint8_t) * 2);
  12. array[0] = 1;
  13. array[1] = 3;
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/508193/101
Success #stdin #stdout 0s 5556KB
stdin
Standard input is empty
stdout
Standard output is empty