strtab.c (178529) | strtab.c (178546) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 191 unchanged lines hidden (view full) --- 200size_t 201strtab_size(const strtab_t *sp) 202{ 203 return (sp->str_size); 204} 205 206ssize_t 207strtab_write(const strtab_t *sp, | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 191 unchanged lines hidden (view full) --- 200size_t 201strtab_size(const strtab_t *sp) 202{ 203 return (sp->str_size); 204} 205 206ssize_t 207strtab_write(const strtab_t *sp, |
208 ssize_t (*func)(const void *, size_t, void *), void *priv) | 208 ssize_t (*func)(void *, size_t, void *), void *priv) |
209{ 210 ssize_t res, total = 0; 211 ulong_t i; 212 size_t n; 213 214 for (i = 0; i < sp->str_nbufs; i++, total += res) { 215 if (i == sp->str_nbufs - 1) 216 n = sp->str_ptr - sp->str_bufs[i]; --- 42 unchanged lines hidden --- | 209{ 210 ssize_t res, total = 0; 211 ulong_t i; 212 size_t n; 213 214 for (i = 0; i < sp->str_nbufs; i++, total += res) { 215 if (i == sp->str_nbufs - 1) 216 n = sp->str_ptr - sp->str_bufs[i]; --- 42 unchanged lines hidden --- |