/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Misc.StrNCpy0.c
    Author:  Copyright  1995 Julian Smith
    Version: 1.00 (28 Sep 1995)
    Purpose: Does a strncpy and terminates the output string.
*/

#include <string.h>

#include "Desk.Str.h"

extern char *Desk_Str_StrNCpy0(char *s1, const char *s2, int n)
{
strncpy( s1, s2, n);
s1[n] = 0;
return s1;
}
