Home | History | Annotate | Download | only in telephony

Lines Matching full:buffer_size

756 amodem_get_operator_name ( AModem  modem, ANameIndex  index, char*  buffer, int  buffer_size )
768 if (buffer_size > len)
769 buffer_size = len;
771 if (buffer_size > 0) {
772 memcpy( buffer, oper->name[index], buffer_size-1 );
773 buffer[buffer_size] = 0;
778 /* reset one operator name from a user-provided buffer, set buffer_size to -1 for zero-terminated strings */
780 amodem_set_operator_name( AModem modem, ANameIndex index, const char* buffer, int buffer_size )
792 if (buffer_size < 0)
793 buffer_size = strlen(buffer);
794 if (buffer_size > avail-1)
795 buffer_size = avail-1;
796 memcpy( oper->name[index], buffer, buffer_size );
797 oper->name[index][buffer_size] = 0;