~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to strings/strend.c

  • Committer: Brian Aker
  • Date: 2008-07-05 19:32:59 UTC
  • mfrom: (53.2.28 codestyle)
  • Revision ID: brian@tangent.org-20080705193259-opqzfb0oprfcg8dm
Merge from Monty's tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <my_global.h>
31
31
#include "m_string.h"
32
32
 
33
 
#if     VaxAsm
34
 
 
35
 
char *strend(s)
36
 
const char *s;
37
 
{
38
 
  asm("locc $0,$65535,*4(ap)");
39
 
  asm("movl r1,r0");
40
 
}
41
 
 
42
 
#else   /* ~VaxAsm */
43
33
 
44
34
char *strend(register const char *s)
45
35
{
46
36
  while (*s++);
47
37
  return (char*) (s-1);
48
38
}
49
 
 
50
 
#endif  /* VaxAsm */