Rendezvous: Difference between revisions

Content added Content deleted
No edit summary
Line 232: Line 232:
printer pnt_backup = { 2, 5 };
printer pnt_backup = { 2, 5 };


int print(char * text, char **error)
int print(const char * text, const char **error)
{
{
#pragma omp critical
#pragma omp critical
Line 255: Line 255:
}
}


char *humpty[] = {
const char *humpty[] = {
"Humpty Dumpty sat on a wall.",
"Humpty Dumpty sat on a wall.",
"Humpty Dumpty had a great fall.",
"Humpty Dumpty had a great fall.",
Line 262: Line 262:
};
};


char *goose[] = {
const char *goose[] = {
"Old Mother Goose,",
"Old Mother Goose,",
"When she wanted to wander,",
"When she wanted to wander,",
Line 276: Line 276:
{
{
int i, j, len;
int i, j, len;
char *msg, **text;
const char *msg, **text;


omp_set_num_threads(2);
omp_set_num_threads(2);
Line 295: Line 295:
return 0;
return 0;
}</lang>
}</lang>

=={{header|F_Sharp|F#}}==
=={{header|F_Sharp|F#}}==