Transact SQL – using xp_sscanf to parse input ( Parse Bible Verse )

  Background Let us use xp_sscanf to parse Bible Verse. Introduction Bible people will say my hope rests on John 3:16 An inquiry mind might want to look up John 3:16. In his or her mind, he will break those words down. In computer jargon, one will tokenize it. Tokens Here are the tokens :- … Continue reading Transact SQL – using xp_sscanf to parse input ( Parse Bible Verse )

C – using sscanf to parse input

Background Let us use the C function, sscanf, to parse input. Bible verse Let us say we want to accept bible verses and interpret the input. Example Input Genesis 3:1 sscanf Format %s %d:%d Code Outline Function - requestVerseInput Prompt :- printf Accept Input gets Display Display accepted input Function - parseVerseInput Reset variables sscanf … Continue reading C – using sscanf to parse input