fgetc.c (333fc21e3cd79bca0c94d7722c5a56cb5ad078d1) | fgetc.c (e74101e4eff767325553039def89de70b70f36d3) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 38 unchanged lines hidden (view full) --- 47#include "local.h" 48 49int 50fgetc(fp) 51 FILE *fp; 52{ 53 int retval; 54 FLOCKFILE(fp); | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 38 unchanged lines hidden (view full) --- 47#include "local.h" 48 49int 50fgetc(fp) 51 FILE *fp; 52{ 53 int retval; 54 FLOCKFILE(fp); |
55 ORIENT(fp, -1); |
|
55 retval = __sgetc(fp); 56 FUNLOCKFILE(fp); 57 return (retval); 58} | 56 retval = __sgetc(fp); 57 FUNLOCKFILE(fp); 58 return (retval); 59} |