Implement a portable bu_gethostname() functionBRL-CAD
Status: ClosedTime to complete: 72 hrs Mentors: SeanTags: C, host name, function

This task involves implementing a PORTABLE function that returns the name of the runtime machine.  Your function needs to at least work on Mac, Linux, and Windows (work with our devs if you don't have access to one and need them to help you test compiles).

You're welcome to define the initial prototype as you see fit, but you should integrate your function in as a new file in src/libbu and edit src/libbu/CMakeLists.txt accordingly.  Submit your work as a single patch file, not separate files.  See http://brlcad.org/wiki/Deuces to get started and for help creating a patch.

Do NOT plagiarize code you find out on the web.  Figure it out and implement the function leveraging our existing libbu API (see include/bu.h for details, like our vls string handling and memory management).  The function will need to comply with our HACKING developer guidelines.

Uploaded Work
File name/URLFile sizeDate submitted
gethostname.patch4.6 KBDecember 13 2012 19:09 UTC
Comments
Cezaron December 12 2012 14:54 UTCTask Claimed

I would like to work on this task.

Harmanpreet Singh on December 12 2012 15:45 UTCTask Assigned

This task has been assigned to Cezar. You have 72 hours to complete this task, good luck!

Cezaron December 13 2012 19:09 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 13 2012 19:22 UTCTask Closed

Congratulations, this task has been completed successfully.

Cezaron December 13 2012 19:22 UTCCommit r54057

Commit r54057