Commit 2b2d1afa authored by Philip Carns's avatar Philip Carns

test program for cuserid function


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@544 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 9730689a
#define _XOPEN_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <mpi.h>
int main(int argc, char **argv)
{
int rank;
char user_string[L_cuserid];
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
cuserid(user_string);
printf("rank %d: user: %s\n", rank, user_string);
MPI_Finalize();
return(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment