Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- receive(chan(byte*) c)
- {
- byte *s;
- s = <-c;
- print("%s\n", s);
- terminate(nil);
- }
- void
- main(void)
- {
- chan(byte*) c;
- alloc c;
- proc receive(c);
- c <-= "Hello, World!";
- terminate(nil);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement