1266987Smarkj/* 2266987Smarkj * This file and its contents are supplied under the terms of the 3266987Smarkj * Common Development and Distribution License ("CDDL"), version 1.0. 4266987Smarkj * You may only use this file in accordance with the terms of version 5266987Smarkj * 1.0 of the CDDL. 6266987Smarkj * 7266987Smarkj * A full copy of the text of the CDDL should have accompanied this 8266987Smarkj * source. A copy of the CDDL is also available via the Internet at 9266987Smarkj * http://www.illumos.org/license/CDDL. 10266987Smarkj */ 11266987Smarkj 12266987Smarkj/* 13266987Smarkj * Copyright (c) 2012, Joyent, Inc. All rights reserved. 14266987Smarkj */ 15266987Smarkj 16266987Smarkj/* 17266987Smarkj * ASSERTION: 18266987Smarkj * The largest base we will accept is Base 36 -- i.e. using all of 0-9 and 19266987Smarkj * A-Z as numerals. 20266987Smarkj * 21266987Smarkj * SECTION: Actions and Subroutines/strtoll() 22266987Smarkj */ 23266987Smarkj 24266987Smarkj#pragma D option quiet 25266987Smarkj 26266987SmarkjBEGIN 27266987Smarkj{ 28266987Smarkj printf("%d\n", strtoll("0", 37)); 29266987Smarkj exit(0); 30266987Smarkj} 31266987Smarkj 32266987SmarkjERROR 33266987Smarkj{ 34266987Smarkj exit(1); 35266987Smarkj} 36