Line 1... |
Line 1... |
1 |
/* This file is part of the SvarCOM project and is published under the terms
|
1 |
/* This file is part of the SvarCOM project and is published under the terms
|
2 |
* of the MIT license.
|
2 |
* of the MIT license.
|
3 |
*
|
3 |
*
|
4 |
* Copyright (C) 2021 Mateusz Viste
|
4 |
* Copyright (C) 2021-2024 Mateusz Viste
|
5 |
*
|
5 |
*
|
6 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
6 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
7 |
* copy of this software and associated documentation files (the "Software"),
|
7 |
* copy of this software and associated documentation files (the "Software"),
|
8 |
* to deal in the Software without restriction, including without limitation
|
8 |
* to deal in the Software without restriction, including without limitation
|
9 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
9 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
Line 45... |
Line 45... |
45 |
/* find the next argument in batargv */
|
45 |
/* find the next argument in batargv */
|
46 |
for (nextarg = batargv + 1; *nextarg != 0; nextarg++);
|
46 |
for (nextarg = batargv + 1; *nextarg != 0; nextarg++);
|
47 |
nextarg++; /* move ptr past the zero terminator */
|
47 |
nextarg++; /* move ptr past the zero terminator */
|
48 |
|
48 |
|
49 |
/* move down batargv so 2nd argument is at the head now */
|
49 |
/* move down batargv so 2nd argument is at the head now */
|
50 |
_fmemmove(batargv, nextarg, sizeof(p->rmod->bat->argv) - (nextarg - batargv));
|
50 |
memcpy_ltr_far(batargv, nextarg, sizeof(p->rmod->bat->argv) - (nextarg - batargv));
|
51 |
|
51 |
|
52 |
return(CMD_OK);
|
52 |
return(CMD_OK);
|
53 |
}
|
53 |
}
|