fork(1) download
  1. #include <stdio.h>
  2. #include <vector>
  3.  
  4. void x(unsigned char *s)
  5. {
  6. printf("%s\n", s);
  7. }
  8.  
  9. int main()
  10. {
  11. const std::vector<char> s(10);
  12.  
  13. x(const_cast<unsigned char*>(reinterpret_cast<const unsigned char *>(s.data())));
  14. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout