3939cc42d8157258c3e65b99da2415e8adb532d3Tinderbox User * Copyright (C) 2014-2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Huntcheck(const char *buf, ssize_t count, size_t *start) {
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt const char chars[] = "abcdefghijklmnopqrstuvwxyz0123456789";
caf7c2fd25a7c4484e7044ecf622d352eabc8e19Mark Andrews i++, *start = (*start + 1) % (sizeof(chars) - 1))
e32d354f754a5d7847a0862bcd6302827ea225bfEvan Hunt /* Just ignore the trailing newline */