Xref: utzoo sci.astro:5893 comp.lang.c:24426 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!phri!alanine.phri.nyu.edu!roy From: roy@alanine (Roy Smith) Newsgroups: sci.astro,comp.lang.c Subject: Looking for degree-minute.fraction parser Message-ID: <1989Dec10.014440.18682@phri.nyu.edu> Date: 10 Dec 89 01:44:40 GMT Sender: news@phri.nyu.edu (News System) Reply-To: roy@alanine.phri.nyu.edu Organization: Public Health Research Institute, NYC Lines: 11 Does anybody have a hacked up version of scanf/printf which can deal with angles of the form DD-MM.T or DD-MM-SS and time of the form HH:MM:SS? When writing astronomy programs, it would be really nice to be able to do 'scanf ("%a, &d)' to read an angle and have it accept any of the commonly used formats for angles. -- Roy Smith, Public Health Research Institute 455 First Avenue, New York, NY 10016 roy@alanine.phri.nyu.edu -OR- {att,philabs,cmcl2,rutgers,hombre}!phri!roy "My karma ran over my dogma"