Subversion Repositories HelenOS-historic

Rev

Rev 1538 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1538 Rev 1653
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
-
 
29
 /** @addtogroup libc
-
 
30
 * @{
-
 
31
 */
-
 
32
/** @file
-
 
33
 */
-
 
34
 
29
#include <string.h>
35
#include <string.h>
30
#include <unistd.h>
36
#include <unistd.h>
31
#include <ctype.h>
37
#include <ctype.h>
32
#include <limits.h>
38
#include <limits.h>
33
#include <align.h>
39
#include <align.h>
Line 298... Line 304...
298
char *strncpy(char *dest, const char *src, size_t n)
304
char *strncpy(char *dest, const char *src, size_t n)
299
{
305
{
300
    while ((*(dest++) = *(src++)) && --n)
306
    while ((*(dest++) = *(src++)) && --n)
301
        ;
307
        ;
302
}
308
}
-
 
309
 
-
 
310
 
-
 
311
 /** @}
-
 
312
 */
-
 
313
 
-
 
314