~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

  • Committer: Brian Aker
  • Date: 2008-09-04 18:16:51 UTC
  • Revision ID: brian@tangent.org-20080904181651-kydoxckk145z99b8
strend remove

Show diffs side-by-side

added added

removed removed

Lines of Context:
1541
1541
    *ptr= ' ';
1542
1542
 
1543
1543
    /* Last non space charecter should be c2 */
1544
 
    ptr= strend(str)-1;
 
1544
    ptr= strchr(str, '\0')-1;
1545
1545
    while(*ptr && my_isspace(charset_info, *ptr))
1546
1546
      ptr--;
1547
1547
    if (*ptr == c2)
4315
4315
{
4316
4316
  int last_c_was_quote= 0;
4317
4317
  char *p= query, *to= query;
4318
 
  char *end= strend(query);
 
4318
  char *end= strchr(query, '\0');
4319
4319
  char last_c;
4320
4320
 
4321
4321
  while (p <= end)
4527
4527
    p++;
4528
4528
  command->first_argument= p;
4529
4529
 
4530
 
  command->end= strend(command->query);
 
4530
  command->end= strchr(command->query, '\0');
4531
4531
  command->query_len= (command->end - command->query);
4532
4532
  parser.read_lines++;
4533
4533
  return(0);
4657
4657
  while (embedded_server_arg_count < MAX_EMBEDDED_SERVER_ARGS &&
4658
4658
   (str=fgets(argument,sizeof(argument), file)))
4659
4659
  {
4660
 
    *(strend(str)-1)=0;        /* Remove end newline */
 
4660
    *(strchr(str, '\0')-1)=0;        /* Remove end newline */
4661
4661
    if (!(embedded_server_args[embedded_server_arg_count]=
4662
4662
    (char*) my_strdup(str,MYF(MY_WME))))
4663
4663
    {
7092
7092
 
7093
7093
uint end_of_word(char * pos)
7094
7094
{
7095
 
  char * end=strend(pos);
 
7095
  char * end= strchr(pos, '\0');
7096
7096
  return ((end > pos+2 && !memcmp(end-2, "\\b", 2)) ||
7097
7097
          (end >= pos+2 && !memcmp(end-2, "\\$",2))) ? 1 : 0;
7098
7098
}