beautypg.com

Sun Microsystems Netra CP2500 User Manual

Page 72

background image

58

Netra CP2500 Board Programming Guide • March 2007

}

printf ("\nuser data buffer:\n");

for (i = 0; i < size; i++) {

printf("%2x ", r_buf[i] & 0xff);

}

printf("\n");

default:

continue;

}

}

/* exit */

getout:

close(fd0);

return;

} /* end of main() */

CODE EXAMPLE 3-6

Sample User Flash Application Program (Continued)