Lines Matching refs:count
38 storage->count = -1;
49 if (storage->count < 0)
50 storage->count = 0;
51 if ((len + storage->count) > maxchars) {
52 len = (maxchars - storage->count);
54 if (len + storage->count < sizeof(storage->data)) {
55 memcpy(storage->data + storage->count, s, len);
56 storage->count += len;
68 if (storage->count < 0)
69 storage->count = 0;
72 if ((len + storage->count) > maxchars) {
73 len = (maxchars - storage->count);
75 if (len + storage->count < sizeof(storage->data)) {
76 memcpy(storage->data + storage->count, s,
78 storage->count += len;
87 int count;
91 count = (storage->count < 0) ? 0 : storage->count;
93 if (len != count) {
96 " got %d, expected %d:\n%s", count, len, storage->data);
100 count, len);
116 int count;
119 count = (storage->count < 0) ? 0 : storage->count;
120 if (len != count) {
122 count, len);