Find a planetary or asteroid name.
swe_get_planet_name(ipl)
Body/planet as integer (SE$SUN=0, SE$Moon=1, ... SE$PLUTO=9)
swe_get_planet_name returns the object's name as string
swe_get_planet_name
Convert object number into object name.
Section 3 in http://www.astro.com/swisseph/swephprg.htm
# NOT RUN { data(SE) swe_get_planet_name(SE$MOON) # }
Run the code above in your browser using DataLab