pac.c (360d4ad5ab5fb31d5812ef571e8a346b8752ff9b) | pac.c (f8eb25da54b492c31fe49e902a95df609ca2c6ef) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 207 unchanged lines hidden (view full) --- 216 while (any(*cp, ".0123456789")) 217 cp++; 218 while (any(*cp, " \t")) 219 cp++; 220 for (cp2 = cp; !any(*cp2, " \t\n"); cp2++) 221 ; 222 ic = atoi(cp2); 223 *cp2 = '\0'; | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 207 unchanged lines hidden (view full) --- 216 while (any(*cp, ".0123456789")) 217 cp++; 218 while (any(*cp, " \t")) 219 cp++; 220 for (cp2 = cp; !any(*cp2, " \t\n"); cp2++) 221 ; 222 ic = atoi(cp2); 223 *cp2 = '\0'; |
224 if (mflag && index(cp, ':')) 225 cp = index(cp, ':') + 1; | 224 if (mflag && strchr(cp, ':')) 225 cp = strchr(cp, ':') + 1; |
226 hp = lookup(cp); 227 if (hp == NULL) { 228 if (!allflag) 229 continue; 230 hp = enter(cp); 231 } 232 hp->h_feetpages += t; 233 if (ic) --- 215 unchanged lines hidden --- | 226 hp = lookup(cp); 227 if (hp == NULL) { 228 if (!allflag) 229 continue; 230 hp = enter(cp); 231 } 232 hp->h_feetpages += t; 233 if (ic) --- 215 unchanged lines hidden --- |