fork download
  1. #include <stdio.h>
  2.  
  3. void f(void *p) {
  4. char *first = p;
  5. short int third = first[2]-'0';
  6. short int fifth = first[4]-'0';
  7. short int seventh = first[6]-'0';
  8. printf("%c %hd %hd %hd\n", *first, third, fifth , seventh);
  9. }
  10.  
  11. int main(void) {
  12. char test[] = "*5431234567";
  13. f(test);
  14. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
* 4 1 3