A man was accused of child abandonment after he was found passed out in a parked car outside the Round Rock Public Library with three crying children inside the vehicle, an arrest affidavit said.

Mark Author Webb, 29, of Round Rock, was charged with abandoning or endangering a child, a state jail felony punishable by up to two years in jail. He was also charged with possession of a controlled substance and public intoxication, both misdemeanor charges.

A witness told police Sunday that a man was passed out in the driver’s seat of a car parked in the back parking lot of the Round Rock Public Library at 216 E. Main St., the affidavit said. The witness said that three children were crying inside the car but the man was not waking up, according to the affidavit.

It said a police officer tried several times to wake up the man — later identified as Webb — but wasn’t able to do it until one of the children in the car put his hands on Webb’s face.

READ: Man accused of abandoning 6-year-old son at Georgetown hotel

When Webb woke up he appeared to be confused and got the day of the week and the name of the current U.S. president wrong, the affidavit said. It said Webb "believed today was ‘Tuesday’ and that ‘Obama’ was still president."

When Webb was asked to step outside the car he was unsteady on his feet, had slurred speech and his breath smelled like alcohol, the affidavit said.

It said police found a 24 ounce can of High Gravity Lager Earthquake that has a 10 percent alcohol content on the floorboard behind the driver’s seat of the car. Police also found two Xanax pills inside the car, the affidavit said.

The affidavit said one child was a one-year-old boy; it did not give the age of the other two children, who were in the unlocked car with the windows down.

Webb was being held in the Williamson County Jail Wednesday with bail set at $12,500.

FOR MORE NEWS: Be sure to follow the Williamson County News Now page on Facebook