~ubuntu-branches/ubuntu/raring/avr-libc/raring-proposed

« back to all changes in this revision

Viewing changes to libc/string/strncpy.S

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2008-04-04 17:05:32 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404170532-tiwwl2e2qln7ri0w
Tags: 1:1.6.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
27
  POSSIBILITY OF SUCH DAMAGE. */
28
28
 
29
 
/* $Id: strncpy.S,v 1.5.2.1 2007/01/23 15:34:58 joerg_wunsch Exp $ */
30
 
 
31
 
#include "macros.inc"
32
 
 
33
 
#define dest_hi r25
34
 
#define dest_lo r24
35
 
#define src_hi r23
36
 
#define src_lo r22
37
 
#define len_hi r21
38
 
#define len_lo r20
 
29
/* $Id: strncpy.S,v 1.7 2007/12/01 06:03:31 dmix Exp $ */
39
30
 
40
31
/** \file */
41
 
 
42
32
/** \ingroup avr_string
43
33
    \fn char *strncpy(char *dest, const char *src, size_t len)
44
34
    \brief Copy a string.
55
45
 
56
46
#if !defined(__DOXYGEN__)
57
47
 
 
48
#include "macros.inc"
 
49
 
 
50
#define dest_hi r25
 
51
#define dest_lo r24
 
52
#define src_hi r23
 
53
#define src_lo r22
 
54
#define len_hi r21
 
55
#define len_lo r20
 
56
 
58
57
        .text
59
58
        .global _U(strncpy)
60
59
        .type   _U(strncpy), @function