internal/twsdcnfrm/src/twsdcnfrm.cpp
author hgs
Tue, 02 Nov 2010 19:23:22 +0530
changeset 79 564bc7b7ad27
permissions -rw-r--r--
201043
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
79
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
hgs
parents:
diff changeset
     3
hgs
parents:
diff changeset
     4
Redistribution and use in source and binary forms, with or without 
hgs
parents:
diff changeset
     5
modification, are permitted provided that the following conditions are met:
hgs
parents:
diff changeset
     6
hgs
parents:
diff changeset
     7
* Redistributions of source code must retain the above copyright notice, this 
hgs
parents:
diff changeset
     8
  list of conditions and the following disclaimer.
hgs
parents:
diff changeset
     9
* Redistributions in binary form must reproduce the above copyright notice, 
hgs
parents:
diff changeset
    10
  this list of conditions and the following disclaimer in the documentation 
hgs
parents:
diff changeset
    11
  and/or other materials provided with the distribution.
hgs
parents:
diff changeset
    12
* Neither the name of Nokia Corporation nor the names of its contributors 
hgs
parents:
diff changeset
    13
  may be used to endorse or promote products derived from this software 
hgs
parents:
diff changeset
    14
  without specific prior written permission.
hgs
parents:
diff changeset
    15
hgs
parents:
diff changeset
    16
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
hgs
parents:
diff changeset
    17
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
hgs
parents:
diff changeset
    18
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
hgs
parents:
diff changeset
    19
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 
hgs
parents:
diff changeset
    20
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
hgs
parents:
diff changeset
    21
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
hgs
parents:
diff changeset
    22
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
hgs
parents:
diff changeset
    23
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
hgs
parents:
diff changeset
    24
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
hgs
parents:
diff changeset
    25
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
Description:  WSD conformance for standard libraries
hgs
parents:
diff changeset
    28
*
hgs
parents:
diff changeset
    29
*/
hgs
parents:
diff changeset
    30
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
#include <stdio.h>
hgs
parents:
diff changeset
    33
int main(void)
hgs
parents:
diff changeset
    34
{
hgs
parents:
diff changeset
    35
	bool flag = true;
hgs
parents:
diff changeset
    36
	printf("Running WSD conformance testcase for standard library.\n");
hgs
parents:
diff changeset
    37
	while(1)
hgs
parents:
diff changeset
    38
	{
hgs
parents:
diff changeset
    39
		if(flag)
hgs
parents:
diff changeset
    40
			printf("\nPress 'e' or 'E' and Enter to exit: ");
hgs
parents:
diff changeset
    41
		flag = !flag;
hgs
parents:
diff changeset
    42
		int c = getchar();
hgs
parents:
diff changeset
    43
		if (c == 'E' || c == 'e')
hgs
parents:
diff changeset
    44
		{
hgs
parents:
diff changeset
    45
			break;
hgs
parents:
diff changeset
    46
		}
hgs
parents:
diff changeset
    47
	}
hgs
parents:
diff changeset
    48
	return 0;
hgs
parents:
diff changeset
    49
}
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
// end of file
hgs
parents:
diff changeset
    52